SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible, with Sharepoint 2007, to add new columns with a Feature to a content type that is already being used in some lists?

share|improve this question


What you'd need to do is first add the new column to the Site Columns (SPSite.RootWeb.Fields), then add it to the FieldRefs of the SPContentType, again at the RootWeb level.

You then need to iterate over the ContentType Usages in that site, to add the column to whereever it's being used, to push the changes throughout the site. You'll need to do all this in FeatureReceiver code.

Here's a blog post on how to add columns to a content type programmatically:

Also, here's one I made as a personal reference, on adding an existing field to a content type as a fieldref:

Gary LaPointe did an stsadm extension to propagate Content Type changes to wherever they're used. He has provided the code, so you can see the logic he used and adapt it to your Feature:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.