Email: Password:       Forgot Password 
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.

Custom Content Types in SharePoint 2010

Viewed:  1918 
Posted On:  24/10/2014 04:23:05 
What is Content types in SharePoint? What is the benefit of using Content Types? How many types? of content types available in SharePoint? What is site column? 


In this article I am going to explain Content types in SharePoint 2010.

What is Content Type?

  • A content type is used to define a SharePoint entity.
  • A Content type is a group of site columns (or metadata), workflows and other settings for the item in the list or document in document library or for SharePoint page.
  • Content types are reusable component, they are not specific to any list or library or page layout. The base type of a content type could be an existing content type like:


Now we will learn how to define Content type and how to use:

Step 1 # Open your SharePoint Site.

Step 2#: Go to Site Action -> Site Settings


Image 1.


Image 2.

Go to Galleries -> Site content types.


Image 3.

Click on Create.


Image 4.

Name: The name of the content type.

Description:  Description of content type.

Parent Content Type: Content Types can inherit from existing content types and they are grouped together by a Group Name

      i. Parent Content Type from: Select an existing group. Since we are defining a content type that will be used to   generate a document we use the 'Document Content Type' group

      ii. Parent Content Type: We want the content type to be applied when we are adding a new document to a library in the site.

Group: Select under which group our new content type should be categorized. 



Image 5.

Now the time to define columns. Here you have 2 options either select site column or create new. We will add column by using both method.

First by using: Add from existing site columns:


Image 6.

Here select your group from which you want to add column. Click Ok.


Image 7.

After clicking (Add from new site column) link button a new form will open, here enter your column name and select appropriate properties and click OK. Here I am going to add below columns.

You can see your added columns. Now we will add from new site column. Here I add below column.

1. Employee Name:

    a. Column Name: Employee Name
    b. Type: Single Line Text
    c. Group: Custom Columns

2. Experience:

     a. Column Name: Experience
     b. Type: Single Line Text
     c. Group: Custom Columns  

 3. Contact Number:

    a. Column Name: Contact Number
    b. Type: Single Line Text
    c. Group: Custom Columns  

4. Employee Address

     a. Column Name: Employee Address
     b. Type: Multiple lines of text
     c. Group: Custom Columns


Image 8.

Now time to use this content type. So add a new document library.

Image 9.


Image 10.


Image 11.

By clicking on More Options enter Name, Description. Select Navigation, version and Document Template value. Click OK.

Image 12.

Now select your Document Library -> Select Library -> Select library Settings.


Image 13.

Select Advance settings here.


Image 14.

Select (Allow Management of content Types to Yes). -> Click OK.


Image 15.

Here Select Add from existing site content types.


Image 16.

Select Group -> Select you content type -> Add -> OK.


Image 17.

Now you can see all columns here in this document library. Here you cans ee in Content type 2 content types are coming so we will make disable Default content type ie: Document. 

Click Change new button order and default content type.


Image 18.

Unchecked Document Content type to make invisible. -> OK.

Now Time to upload new document -> Select your document library -> click Add document.


Image 19.

After selecting document click Ok. A popup will come automatically.


Image 20.

Fill form -> Click Save.


Image 21.

Here you can see your uploaded document. But you are unable to see all columns. To make visible all columns we need to modify default view -> In library -> Select View -> Modify View


Image 22.

Select all your columns which you want to show -> and click OK.


Image 23.

Now you can see your entire column.

         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us