Problem With Content Types Deployed In Solution As Feature
-
Hello All,
I am having a weird problem with deploying a content type as a feature. Here's the senario, I have 5 content types all inheriting from a base content type and the 5 'child' content types all have differant word templates associated with them. Now the content types deploy properly and I can create a library using those content types. So far so good but; when I try to create a new item in the library, using one of the content types deployed, the document information panel does not show up :sigh:
If I use SharePoint to create a new content type using my 'base' as its parent and upload a new template, really its just a template of one of the other content types, everything works fine and the document information panel now displays in Word.
Here is a snippet of the deployment XML from my elements file;
<!-- Add The Fields --> .... Removed ... <!-- Add the word templates --> <Module Name="FormTemplates" Url="Forms" Path="ContentTypes" RootWebOnly="TRUE"> <File Url="tp_concept.dotx" Name="Concept/tp_concept.dotx" Type="Ghostable" />; </Module> <!-- Create the content types --> <ContentType ID="0x01010095D264DCE89C4426A2E9BFC0AAF4F011" Name="KC Base" Description="" Sealed="true" FeatureId="4779EBDB-DEEE-4a4b-A5C0-09FB5C7A0CCF" Group=""> <FieldRefs> .... Removed ... </FieldRefs> </ContentType> <ContentType ID="0x01010095D264DCE89C4426A2E9BFC0AAF4F01101" Name="Concept" Group="" Description=""> <FieldRefs> .... Removed ... </FieldRefs> <DocumentTemplate TargetName="/Forms/Concept/tp_concept.dotx"/> </ContentType>
If at first you don't succeed ... post it on The Code Project and Pray.