Tuesday, August 9, 2011

Define Content types in Sharepoint 2010

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
       <!-- Parent ContentType: Event (OPS Events\OPSEventsContentType) (0x01020040bc988755064919bdff99cafa3b38f4) -->
       <ContentType ID="0x01020040bc988755064919bdff99cafa3b38f4001421e28a5efd4635aa50cf2a4083bf51"
                            Name="CustomContentType"
                            Group="Custom Content Types"
                            Description="Test content Type"
                            Inherits="TRUE"
                            Version="0">
              <FieldRefs>
  <!--custom field -->
                     <FieldRef ID="{41063E43-A214-4434-8313-FC88C859CFA9}" Name="OPSWorkspaceLink" DisplayName="Workspace Link" ShowInNewForm="FALSE" />
                                         
                    
              </FieldRefs>

  <!--custom display/edit/new forms-->

              <XmlDocuments>
                     <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
                           <FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
                                  <Display>OPSCalendarForm</Display>
                                  <Edit>OPSCalendarForm</Edit>
                                  <New>OPSCalendarForm</New>
                           </FormTemplates>
                     </XmlDocument>
              </XmlDocuments>

       </ContentType>
</Elements>


No comments:

Post a Comment

Followers

Blog Archive