SPD015202: ContentType inherits from ContentType

ContentType typically inherits from a ContentType

TypeName: ContentTypeInheritsFromContentType
CheckId: SPD015202
Severity: Information
Type: ContentTypeDefinition
Remarks

A ContentType can reference an existing ContentType in Features and in ListDefinition element. See samples below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <ContentType ID="0x0101000728167cd9c94899925ba69c4af6743e"
      Name="Financial Document"
      Group="Financial Content Types"
      Description="Base financial content type"
      Version="0">
         <FieldRefs>
         ...
         </FieldRefs>
   </ContentType>
</Elements>


ContentType in ListDefinition:

<List xmlns:ows="Microsoft SharePoint" Title="Financial Documents"
   ...
   EnableContentTypes="TRUE">
   <MetaData>
      <ContentTypes>
         <ContentType ID="0x01010012841A8869DB425cB829C3875EC558CE01"
            Name="$Resources:Document"
            Group="$Resources:Document_Content_Types"
            Description="$Resources:DocumentCTDesc" >
            <FieldRefs>
            ...
   </MetaData>
</List>

Links

comments powered by Disqus