O'Reilly logo

Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint by Carl Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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...

  1. Launch your Visual Studio 2010 IDE as an administrator (right-click the shortcut and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required