|
Configuration XML file |
Site Definition |
|
WEBTEMP.XML |
STS,MPS,CENTRALADMIN,BLOG,WIKI |
|
WEBTEMPSPS.XML |
SPS,SPSPERS,SPSMSITE,SPSTOC,SPSTOPIC,SPSNEWS,BLANKINTERNET,SPSNHOME,SPSSITES, SPSCOMMU, SPSREPORTCENTER, SPSPORTAL, SRCHCEN, PROFILES, SPSMSITEHOST |
|
WEBTEMPSRCH.XML |
SRCHCENTERLITE |
|
WEBTEMPOFFILE.XML |
OFFILE |
How to create custom site definition:
When you want to mention your own site definition to include some more web parts, Lists, features on creation of the site you need to create your custom site definition. You should not make changes in the OOB site definition files and it is not supported.
Based on the architecture of OOB site definition you need to create your custom site definition.
1. Create a site definition folder under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates. You can copy any of the existing site definition folder based on which OOB site definition you are going to extend the definition. Consider if you are going to extend the definition of Team Site then you need to copy the “sts” folder and paste it with your custom site definition name.
2. Create a configuration XML file under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML folder. You can copy the existing configuration file which configures the site definition based on which you are extending the custom site definition. Consider if you are going to extend the definition of Team Site then you need to copy the WEBTEMP.XML file. The naming convention is mandatory here and you need to name your custom webtemp.xml file in the following format WEBTEMP*.xml. (The SharePoint looks for the configuration inside the files which starts with WEBTEMP)
3. In custom WEBTEMP*.xml file you need to mention the custom site definition template folder name and need to mention the ID for it. The ID should be greater than 10000
4. You can mention any number of configuration per template provided you need to mention the contents for every configuration in the ONET.XML file.
5. The following snippet shows the sample custom WEBTEMP*.xml file :
<Templates xmlns: ows="Microsoft SharePoint">
<Template Name="<Your Custom Site definition Folder name>" ID="<The ID should be greater than 10000(from 1-10000 it was reserved by Microsoft for the OOB site definitions">
<Configuration ID="0" Title="Team Site" Hidden="FALSE" ImageUrl="/_layouts/images/stsprev.png" Description="A site for teams to quickly organize, author, and share information. It provides a document library, and lists for managing announcements, calendar items, tasks, and discussions." Display Category="Collaboration" > </Configuration>
<Configuration ID="1" Title="Blank Site" Hidden="FALSE" ImageUrl="/_layouts/images/blankprev.png" Description="A blank site for you to customize based on your requirements." DisplayCategory="Collaboration" AllowGlobalFeatureAssociations="False" > </Configuration>
<Configuration ID="2" Title="Document Workspace" Hidden="FALSE" ImageUrl="/_layouts/images/dwsprev.png" Description="A site for colleagues to work together on a document. It provides a document library for storing the primary document and supporting files, a tasks list for assigning to-do items, and a links list for resources related to the document." DisplayCategory="Collaboration" > </Configuration>
</Template>
</Templates>
Site Definition of collaboration portal Template
=========================================
The process of the Collaboration portal site definition is different from the process and the flow of other site definition.
1. Consider you have created some custom site definition for team site, search center and do