locked
Some custom site columns missing when attempting to add them to content type RRS feed

  • Question

  • I have created several custom site columns that I use throughout the site - roughly 15 of them.  Many of them are attached to a site content type that I have created - call it content type A.  I created an additional site content type (content type B) which will share some of the same site columns.  However, when I go to add the existing custom site columns to content type B, I can only see a few of the custom columns I have previously created.  I thought at first that I might only be able to use custom columns with one content type, but that isn't the case because I do have the ability to add some of them.  Any ideas?  Thanks in advance.


    Wednesday, April 18, 2012 9:25 PM

Answers

  • Hi jackjohnson93,

    have you ever add some comments in your XML file?, If you had did it, please remove it.

    <elements xmlns="http://schemas.microsoft.com/sharepoint/">

      <!-- Parent ContentType: Item (0x01) -->

      <contenttype description="Mojo Item Content Type" group="Mojo Custom Content Types" id="0x01006e1d2ee8a874413dbe16d4ca2980cd0e" inherits="TRUE" name="SharePointProject1 - Item" version="0">

        <fieldrefs>

          <!-- Testing -->//Please remove comments

          <fieldref id="{36EFEDE7-3F78-4DB1-9A98-C94BF1E57133}" name="SessionName">

        </fieldref></fieldrefs>

      </contenttype>

    </elements>

    You can refer to the following link.

    http://www.ascentium.com/content/site-columns-missing-your-content-types

    Thanks,

    Jack

    Monday, April 23, 2012 11:56 AM
    Moderator

All replies

  • Hi jackjohnson93,

    have you ever add some comments in your XML file?, If you had did it, please remove it.

    <elements xmlns="http://schemas.microsoft.com/sharepoint/">

      <!-- Parent ContentType: Item (0x01) -->

      <contenttype description="Mojo Item Content Type" group="Mojo Custom Content Types" id="0x01006e1d2ee8a874413dbe16d4ca2980cd0e" inherits="TRUE" name="SharePointProject1 - Item" version="0">

        <fieldrefs>

          <!-- Testing -->//Please remove comments

          <fieldref id="{36EFEDE7-3F78-4DB1-9A98-C94BF1E57133}" name="SessionName">

        </fieldref></fieldrefs>

      </contenttype>

    </elements>

    You can refer to the following link.

    http://www.ascentium.com/content/site-columns-missing-your-content-types

    Thanks,

    Jack

    Monday, April 23, 2012 11:56 AM
    Moderator
  • It's a bit late on this, but I notice that you're missing your Field tag for the "SessionName."

    <Field

         ID="{36EFEDE7-3F78-4DB1-9A98-C94BF1E57133}"
         Name="SessionName"
         DisplayName="Session Name"
         Type="Text"
         Required="TRUE"
         Group="Mojo">
      </Field>

    Cheers.


    C. Jake Jacobsen


    • Edited by JakeJacobsen Wednesday, July 31, 2013 8:00 PM wrong guid
    Wednesday, July 31, 2013 8:00 PM