Content Types for SharePointThis SharePoint Visual How To walks you through the following high-level steps to show the process of creating and deploying a content type to a SharePoint 2010 site:
|
You will create a content type definition named Official Documents that is based on the Document content type. Then, you will add a choice column for Review Status, and deploy and use this content type.
Aspired to become a SharePoint? Explore the post to discover the know-how on the "SharePoint Training" course.
To create a SharePoint 2010 content-type application solution in Visual Studio 2010
|
To edit the content type details in the Elements.xml file
|
XML: <ContentType ID="0x01010055a134438a8544eaa18477c8f21894d0" Name="Official Documents" Group="Custom Content Types" Description="Official Document Content Type" Inherits="TRUE" Version="0">
To add a field to the Elements.xml file
|
To deploy the project
|
To use the new content type
|
The Content-Type element is then edited so that it includes a <FieldRef> tag that specifies the new Field that has been defined by reference to the ID (GUID) of that new field. This ensures the field is included in this content type.
You liked the article?
Like : 0
Vote for difficulty
Current difficulty (Avg): Medium
1/3
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.
Stay Updated
Get stories of change makers and innovators from the startup ecosystem in your inbox