SPC015212: Define attribute 'Inherits' to FALSE in ContentType if Custom Forms are used

A content type should not have attribute 'Inherits' set to 'TRUE' if custom forms are used. Set Inherits to 'FALSE' or remove the custom form from a content type.

TypeName: DefineInheritsToFalseInContentTypeWithForms
CheckId: SPC015212
Severity: CriticalWarning
Type: ContentTypeDefinition
Resolution

A ContentType should not set 'Inherits' to TRUE when custom forms are used. See sample below:

<ContentType ID="0x0101"
   Name="$Resources:Document"
   Group="$Resources:Document_Content_Types"
   Description="$Resources:DocumentCTDesc"
   Inherits="FALSE">
   <XmlDocuments>
      <XmlDocument
         NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
         <FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
            <Edit>Company_CTForm_ContentTypeWithAll_Edit</Edit>
         </FormTemplates>
      </XmlDocument>
   </XmlDocuments>
</ContentType>

Links

comments powered by Disqus