SPD015403: ListInstance references ListDefinition via CustomSchema

A ListInstance can reference a ListDefinition in attribute 'CustomSchema'

TypeName: ListInstanceReferencesCustomSchema
CheckId: SPD015403
Severity: Information
Type: ListInstanceDefinition
Remarks

A ListInstance can reference a ElementFile of the same Feature in attribute 'CustomSchema'. The TemplateType in the ListInstance corresponds to the attribute 'Type' in the schema.xml. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <ListInstance
      TemplateType="121"
      Title="Solution Gallery"  
      Url="_catalogs/solutions"  
      CustomSchema="Files\_catalogs\solutions\Schema.xml"  
      RootWebOnly="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/" />
</Elements>


Corresponding Schema.xml:

<List  
   Title="Solution Gallery"  
   BaseType="1"  
   Type="121"  
   xmlns="http://schemas.microsoft.com/sharepoint/">
   <MetaData>
   ...
   </MetaData>
</List>

comments powered by Disqus