in SharePoint 2010

Web Templates and Content Type Publishing

The Problem

Web templates allows you to specify which features to activate by customising the onet.xml file. Usually developers will pick the nearest one or more site definition’s onet.xml they want to use – copy the WebFeatures and SiteFeatures (which is totally acceptable). For example, for a publishing site I may use the CMSPUBLISHING onet.xml which you can find at:

C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATESiteTemplatesSPSXMLonet.xml

But what about if your web application is subscribed to a content type hub and you are expecting those published content types to come down to your new site created using the web template?

If you check your site (provisioned using a web template) settings, you will not find the ‘Content Type Publishing’ setting under Site Collection Administration. This is the place where you will see the content types consumed by the site (from the content type hub).

Read more here

Write a Comment

Comment

Time limit is exhausted. Please reload the CAPTCHA.