Web-scoped Content Type and Field Features in SharePoint 2010

One thing I discovered while I was dissecting one of these fancy new .WSP site templates was that the content type feature exported had web scope, rather than the mandatory site scope of SharePoint 2007.

Of course, since content types still need to reference only existing columns, this means that the fields or columns required by the content types also need to be web scoped. And lo and behold the exported feature.xml file from a WSP site template:

         Title="Fields feature of exported site "SP2010 TS Lab""
         Scope="Web" <—Look at this!

Now before you go out and celebrate with a fitting bottle of good champagne, let me pour some cold water into your bloodstream. If you think you can simply reuse the columns feature, take a look at the final few lines of the elements file of that feature.


Yeah, that’s right. From a basic team site, no customization to talk about, you get a 3557 line long elements.xml, just for the columns.

Seems there will still be a need for people who know how to hand-craft these files, even in 2010 🙂


Found this article valuable? Want to show your appreciation? Here are some options:

a) Click on the banners anywhere on the site to visit my blog's sponsors. They are all hand-picked and are selected based on providing great products and services to the SharePoint community.

b) Donate Bitcoins! I love Bitcoins, and you can donate if you'd like by clicking the button below.

c) Spread the word! Below, you should find links to sharing this article on your favorite social media sites. I'm an attention junkie, so sharing is caring in my book!

Pin It

Published by

Bjørn Furuknap

I previously did SharePoint. These days, I try new things to see where I can find the passion. If you have great ideas, cool projects, or is in general an awesome person, get in touch and we might find out together.

One thought on “Web-scoped Content Type and Field Features in SharePoint 2010”

Leave a Reply

Your email address will not be published.