Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Create webtemp file

Modified: 2008/10/28 12:21 by BHammendorp - Categorized as: SharePoint
If you want to create a custom webtemp file for your own site definition, you must consider the following:

1. The Name attribute of the Template element must be in UPPERCASE and matching with the folder name under the SiteTemplates folder.

2. In order to make a template only visible when creating a Site Collection level site, you must set RootWebOnly="TRUE". RootWebOnly is an attribute of the Configuration element within the webtemp file. See http://msdn2.microsoft.com/en-us/library/ms476942.aspx

3. If you need your site definition to be available only to sub sites within a site collection, set the SubWebOnly attribute of the Configuration element to "TRUE".

4. The ID attribute must be unique among the rest of Templates. Take a look at the IDs assigned to other templates in all of webtempXXXX.xml files in the <12 Hive>\TEMPLATE\1033\XML folders.

The configurable attributes in the webtemp are:

Title: Template title text displayed in the Template Selection user interface.

Description: Description of the purpose and features of the requested template displayed in the Template Selection user interface.

ImageUrl: Provides the virtual path to the preview image displayed in the Template Selection user interface.

DisplayCategory: Defines the category where the template should be made available for selection in the Template Selection user interface.

RootWebOnly: Defines the usage scenario in which this template can be applied.

ProvisionAssembly: Provides the fundamental publishing infrastructure in Microsoft Office SharePoint Server 2007.

ProvisionClass: Defines the class associated with the ProvisionAssembly attribute.

ProvisionData: Provides the virtual path to the associated Web manifest (%commonprogramfiles%\Microsoft Shared\Web Server Extensions\12\TEMPLATE\SiteTemplates\WebManifest\portalwebmanifest.xml)

VisibilityFeatureDependency Feature dependency associated with the template that provides its visibility.

 © Evident Interactive BV