How To Add column to all content types and lists in SharePoint - SharePoint Development & Administration + InfoPath

Monday, March 21, 2011

How To Add column to all content types and lists in SharePoint

Adding a column to all content types and list in SharePoint is simple, but there are implications that first need to be considered before doing so.  Once completed, the new column will be available in all existing content types in the Site Collection, as well as lists and libraries that exist on SharePoint sites.


Implication:
The implication of this change, is that the process to reverse is not nearly as simple as the process to implement. Removing the column from the content type(s) will not remove the association of the column with lists that previously had the global column.  A custom solution could be developed to automate removal of the column from content types and lists, but the alternative would be to manually remove each instance which could be time consuming in larger, more complex environments.


Process:
Content Types in SharePoint inherit from the Item content type.  If a column is added to this content type (with the “Update all content types inheriting from this type?” option selected), the column will also be added to all existing content types in the site collection.

  1. Navigate to the Content Type Gallery at the root of the site collection, via the site settings page
  2. From under the List Content Types heading, select the “Item” content type.
  3. Press the “Add from new site column”, link to add a new global column, or the add from existing option to add an existing column to all content types.
  4. (If adding a new column) Complete the information about the new column, ensure that the “Update all content types inheriting from this type?” option is selected, and press OK to add the column.
Share this article:
Stumble This Delicious
Delicious
submit to reddit
Facebook
MySpace
MySpace

No comments:

Post a Comment