Extending an existing content type
In the previous recipe, we learnt how to create a site column using the SharePoint object model. In this recipe, we will create a site column using a declarative XML and add it to the contacts content type.
Contacts content type provides a way to store the contacts in SharePoint. It provides various columns to store contact's name, phone number, fax, web page, and so on. Out of the box, it does not provide a way to categorize these contacts. We will extend this content type so we can categorize our contacts as sales lead, customer, or vendor
Getting ready
You should have completed the previous recipe successfully.
How to do it...
- Launch your Visual Studio 2010 IDE as an administrator (right-click the shortcut and ...
Get Microsoft SharePoint 2010 Developer Compendium now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.