Content type in SharePoint 2010 :

Content type in SharePoint 2010 : 

  •  Content types are reusable component, they are not specific to any list or library or page layout.
  • 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 Type represents group of information with common properties. For example, you are maintaining group of Resume type documents and other normal documents.So you can have a separate Content Type for that Resume type documents.And separate content type for other documents. 
In simple words : 
                   To know  extra information of  Type of the content which we upload. it is not same as file type.Its a kind of meta data. Like attaching labels to the files.
    ex-1 one file type diff content type
    a word file can have
    1.resume 2.business data 3.Menus 4.Rules
    ex-2 same content types can have diff file types 
    business data-word file,excel file, ppt, pdf

    Let we see how to create and use content type.

    Create new content type : 

    • site actions->site settings->Galleries->site content types (there you can see multiple content types available in site)

    At the top there is one option for create (click that)-> Give content type name(I gave as Resume Document)-> Select Parent content type, there it shows already available types(i select document content type and document)  ->click OK
    • After that content type page you can add more columns for this content type, you can also add workflows and other things also.I have created 3 columns for this  1.Candidate Name (as single line of text)2.Domain (as single line of text)3.Experience (as number)


    • Now go to site settings->Galleries->site content types there you can see your content type name

    Using your content type :           

    • To use this content type, create one document library in your site or you can use existing library 
      Go to library settings->General setting->Advance settings->click yes on Allow management of content types->click ok

    • Now you can see Content Types in settings page, thereclick Add from existing site content types, select your content type and click add and OK





    • Now go to library and add new document, you will see two options, one is default and another one is  your custom content type see the below image



    • if you want to disable the default content type of the library then
      go to library settings->Change new button order and default content type->
      select your content type click ok. see blow image




    • Now go to your library now and you can see only your content type


    • now add or upload some documents it will ask the other columns names of content type.give that details and click OK. See the image


    now the file will be uploaded but you cant see the default columns

    • If you want to see select the file and
      click properties. Now you can see the default columns available


    Like this we can create our own content type.

    Comments

    Popular posts from this blog

    Upload Single/Multiple file by using the REST API and jQuery SharePoint 2013

    Add content type to SharePoint List/Library using REST API

    A type named 'SP.Data. could not be resolved by the model error