Wednesday, May 8, 2013

Content Type in Visual Studio 2010

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- Parent ContentType: Item (0x01) -->


    <Field ID="{B7410A27-4E0C-42FB-BC6E-07928C43108D}" Name="ContactType" DisplayName="Contact Type"   Type ="Choice" >
        <CHOICES>
            <CHOICE>Personal Contact</CHOICE>
            <CHOICE>Official Contact</CHOICE>
            <CHOICE>Other Contact</CHOICE>
        </CHOICES>
    </Field>
   
   
  <ContentType ID="0x0100f4544fd5fe2e4a32aaf772a259e62626"
               Name="Contact Type"
                 Group="Custom Content Types"
                 Description="Contact Type"
                 Inherits="TRUE"
                 Version="0">
      <FieldRefs>
          <FieldRef ID="{B7410A27-4E0C-42FB-BC6E-07928C43108D}"/>
      </FieldRefs>
  </ContentType>
</Elements>

No comments:

Post a Comment