Project element (Site)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Serves as the top-level element in an Onet.xml file that contains a site definition configuration or Web template configuration for a new website.
<Project AlternateCSS = "Text" AlternateHeader = "Text" AlternateUrl = "Text" CustomJSUrl = "Text" DisableWebDesignFeatures = "Text" ListDir = "Text" Revision = "Integer" SiteLogoUrl = "Text" SiteLogoDescription = "Text" Title = "Text" UIVersion = "Integer"> </Project>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
||Optional Text. Used to specify the name of an alternate cascading style sheets (CSS) file located in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\LAYOUTS\ lcid\STYLES directory (where lcid is the ID of a language/culture; for example, 1033 for English) that defines styles to use in the configuration.
||Optional Text. Used to specify the name of an ASPX page located in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\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 page with the output of an ASPX page that defines a different header. For example, add
||Optional Text. Blocks specific editing features that are used in SharePoint Designer.
Possible values include the following, which can be delimited using semicolons:
wdfbackup Disable website backup.
wdfrestore Disable website restore.
wdfpackageimport Disable website package import.
wdfpackageexport Disable website package export.
wdfthemeweb Disable theme support for the website.
wdfthemepage Disable theme support for individual pages.
wdfnavigationbars Disable support for navigation bars.
wdfnavigationview Disable the Navigation view for the website.
wdfpublishview Disable the Remote website view for the website.
wdfpublishselectedfile Do not allow the selected file to be published.
wdfopensite Disable access to the entire website.
wdfnewsubsite Do not allow the creation of a new subsite.
||Required Text. Specifies the directory in which to implement new lists.
||Optional Integer. Specifies the build number of the site definition.
||Optional Text. Specifies a server-relative URL for a custom image to use for the site logo. For example,
||Optional Text. Provides a description of the site logo.
||Required Text. Specifies a default name for websites that are created from the site definition.
||Optional Integer. Specifies the version of the SharePoint Foundation UI that is being used by the sites based on the site definition.
- Minimum: 0
- Maximum: 1
The following example shows the opening line of the Onet.xml file for the standard SharePoint Foundation site definition (STS).
<Project Title="$Resources:onet_TeamWebSite;" Revision="2" ListDir="$Resources:core,lists_Folder;" xmlns:ows="Microsoft SharePoint">