Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Problem With Content Types Deployed In Solution As Feature

Problem With Content Types Deployed In Solution As Feature

Scheduled Pinned Locked Moved SharePoint
sharepointwpfsysadminxmlhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Adam R Harris
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups