Serves as the top-level element in the Onet.xml file that contains a site definition for a new Web site based on Windows SharePoint Services.
<Project
AlternateCSS = "Text"
AlternateHeader = "Text"
CustomJSUrl = "Text"
DisableWebDesignFeatures = "Text"
ListDir = "Text"
Revision = "Integer"
SiteLogoUrl = "Text"
Title = "Text">
</Project>
|
Attribute
|
Description
|
|
AlternateCSS
|
Optional Text. Used in an Onet.xml file to specify the name of an alternate cascading style sheets (CSS) file located in the \\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1033\STYLES directory that defines styles to use in the site definition.
|
|
AlternateHeader
|
Optional Text. Used in an Onet.xml file to specify the name of an ASPX page located in the \\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS directory that defines an alternate header for the top area in site pages. This attribute provides a means to replace the header region of a native layouts page with the output of an ASPX page that defines a different header. For example, add AlternateHeader="myHeader.aspx" to the Project element at the beginning of the Onet.xml file to specify myHeader.aspx as the name of the file that provides an alternate header.
|
|
CustomJSUrl
|
Optional Text. Specifies a custom JavaScript file located in the \\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS directory that contains script to execute within a site created from the site definition.
|
|
DisableWebDesignFeatures
|
Optional Text. Blocks specific editing features that are used in Microsoft Office SharePoint Designer 2007. Possible values include the following, which can be delimited using semicolons:
-
wdfbackup Disable Web site backup.
-
wdfrestore Disable Web site restore.
-
wdfpackageimport Disable Web site package import.
-
wdfpackageexport Disable Web site package export.
-
wdfthemeweb Disable theme support for the Web site.
-
wdfthemepage Disable theme support for individual pages.
-
wdfnavigationbars Disable support for navigation bars.
-
wdfnavigationview Disable the Navigation view for the Web site.
-
wdfpublishview Disable the Remote Web site view for the Web site.
-
wdfpublishselectedfile Do not allow the selected file to be published.
-
wdfopensite Disable access to the entire Web site.
-
wdfnewsubsite Do not allow the creation of a new subsite.
|
|
ListDir
|
Required Text. Specifies the directory to implement in new lists.
|
|
Revision
|
Optional Integer. Specifies the build number of the site definition.
|
|
SiteLogoUrl
|
Optional Text. Specifies a server-relative URL for a custom image to use for the site logo. For example, /_layouts//images/MyCustomLogo.gif.
|
|
Title
|
Required Text. Specifies a default name for a SharePoint site.
|
The following example shows the opening line of the Onet.xml file for the standard Windows SharePoint Services site definition (STS).
<Project Title="$Resources:onet_TeamWebSite;" Revision="2" ListDir="$Resources:core,lists_Folder;" xmlns:ows="Microsoft SharePoint">