Showing posts with label Content Management. Show all posts
Showing posts with label Content Management. Show all posts

Feb 2, 2012

Develope Content Type from Custom parent Conten Type in Sharepoint 2010 using Visual Studio 2010.

hello guys ,

This is our third Article on the Content Types in SharePoint 2010. the FirstPart we developed a content type using Visual studio 2010 we will use that content type as a base and start from there.

we will open the Content Type project created in FirstPart.


Right click on solution -->Add -->new project.



Select the Project Type as Content Type under SharePoint 2010.




Click OK.
deploy solution as Form Solution.






Click Next.
Select the Content type which we created in the FirstPart i.e. DevendraContentType

Click Finish.



Open Elements.xml
we can see that the contentType Inherited from the Previous one. See the below pic for the details.



and add the Fields which you want and FiledRef in the Elements.xml .to do this you can follow the FirstPart

to use the content type you can use the SecondPart

Hope you Enjoyed....

SharePoint-Journey for Administrators, Developers and users

Jan 27, 2012

Contentype in Sharepoint 2010 using visual studio 2010 - Second Part


How to use the Content Type:


To use the content type developed in First part we will create a document library with the name of devendra.
Go to Site Actions-->View All site Content--> Create-->Select Library-->Select Document Library.




Enter a Name. Click on Create, a document library will get created. Select the Library which you create click on Library settings.



Click on Advanced settings.




Check Allow management of content type to Yes



In the below screen you can see the option Add from existing content types.



Select the content type which we created and Click on add.





To make the content type added to be default click on Change new button order and the default content type.



Only check the content type you developed or change the position to 1.here I am just checking the DevendraContentType.



Go to the document library; click on Add Document .see the Grade column with choice values.



The document has been added to library. To get Grade column to be displayed in the default view.



Go to library settings and click on All Documents under Views.



Check the Grade column.




Now you can see the Grade under default view.



you are done with associating content type developed using visual studio 2010 to document library.

SharePoint-Journey for Administrators, Developers and users