R – Creating Site Templates from MOSS publishing sites

mosspublishingsharepointsitestemplates

I know that creating a site template from a MOSS publishing site is not currently supported by Microsoft.

Can anyone tell me if creating a basic site, then turning on the publishing feature, then creating a site template is supported – I would guess not as it's probably the same as creating a publishing portal?

Best Answer

You can staple the publishing feature onto your site template.

From KB 986908:

You can create a stapling feature to staple the Office SharePoint Server Publishing feature to specific site templates. For example, see the Feature.xml file in the "Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Features\PublishingStapling" folder. To staple the Office SharePoint Server Publishing feature to all site templates, use the TemplateName="GLOBAL" property. This property staples a particular feature to a site definition if the site definition does not specify the AllowGlobalFeatureAssociations property. (Only the Shared Services Provider site template and the Blank Site site template use the AllowGlobalFeatureAssociations="FALSE" property.)

For example, when you use the TemplateName="GLOBAL" property to staple the Office SharePoint Server Publishing feature, a site that is based on the Team site template uses the system master page that is configured for the root site of the site collection.