SPD027504: ListDefinition references ContentType

ListDefinition references ContentType

TypeName: ListDefinitionContentTypeReferencesContentType
CheckId: SPD027504
Severity: Information
Type: List
Remarks

A ListDefinition can reference existing ContentTypes in MetaData element. See sample below:

<List xmlns:ows="Microsoft SharePoint" Title="Financial Documents"
   Direction="$Resources:Direction;" Url="Financial Documents"
   BaseType="1"
   EnableContentTypes="TRUE">
   <MetaData>
      <ContentTypes>
         <ContentTypeRef ID="0x01010012841A8869DB425cB829C3875EC558CE01">
            <Folder TargetName="Forms/Document" />
         </ContentTypeRef>
         <ContentTypeRef ID="0x0120" />
      </ContentTypes>
      ...
   </MetaData>
</List>

comments powered by Disqus