In this article, we are going to create a custom Content Type using Visual Studio 2010.
Steps Involved
Creating Empty SharePoint Project
- Open Visual Studio 2010.
- Go to File => New => Project.
- Select 2010 from the installed templates SharePoint and choose Empty SharePoint Project.
- Name it as CustomContentType.
- Click Add.
- Enter the SharePoint server farm URL.
- Select 'Deploy it as a Farm Solution".
- Click Finish.
Adding Content Type
Testing
- Go to the SharePoint site.
- Go to Site Actions => Site Settings =>Galleries =>Site Content Types.
- You will see the Custom Content Type that we have created in the group "Custom Content Types".