4.1. Site Definitions

A Site Definition is used to determine the initial look and feel as well as contain the core functionality of a site when it is provisioned. A Site Definition is defined as a collection of files that reside in a subdirectory located in the [WSS]\TEMPLATE\SiteTemplates folder on each of the front-end web servers. The WSS v3 installer currently places this folder deep in the Program Files area, with the typical address of C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\. The rest of this chapter uses the notation [WSS] to represent this folder path.

The out-of-the-box Site Definitions supplied with WSS v3 are listed in the following table. Multiple Site Definitions within the same folder location are defined as individual configurations within Onet.xml (discussed soon). All of these are visible any time a user chooses to create a new site by clicking on the Sites and Workspaces link on the Create page accessed via the Site Actions menu. Custom Site Definitions appear here as well as WSS v3 is made aware of them. The process to create and deploy a Site Definition is demonstrated later in the chapter.

Template NameTemplate CategoryLocation
Team SiteCollaboration[WSS]\TEMPLATE\SiteTemplates\sts
Blank SiteCollaboration[WSS]\TEMPLATE\SiteTemplates\sts
Document WorkspaceCollaboration[WSS]\TEMPLATE\SiteTemplates\sts
Wiki SiteCollaboration[WSS]\TEMPLATE\SiteTemplates\Wiki
BlogCollaboration[WSS]\TEMPLATE\SiteTemplates\Blog
Basic Meeting Workspace

Get Professional SharePoint® 2007 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.