What is ONET.XML?

When SharePoint Foundation is installed, several Onet.xml files are installed, one in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\GLOBAL\XML
that applies globally to the deployment, and several in different folders within %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\SiteTemplates. Each in the latter group corresponds to a site definition that ships with SharePoint Foundation

(1) The global Onet.xml file — defines list templates for hidden lists, list base types, a default definition configuration, and modules that apply globally to the deployment.

(2) Each Onet.xml file in a subdirectory directory can define navigational areas, list templates, document templates, configurations, modules, components, and server e-mail footers used in the site definition to which it corresponds.

ONET.XML can be part of a Site Definition or Web Template.
You cannot create new base list types in either a site definition or a Web template. The base types defined in the global Onet.xml file are the only ones supported.
Microsoft does not support
making changes to an originally installed Onet.xml file.

<Project> is the top-level element of ONET.XML

In ONET.XML, strings that begin with “$Resources” are constants that are defined in an resx file.

The NavBars element contains definitions for the top navigation area

An Onet.xml file in a Web template cannot have an DocumentTemplate element.

BaseTypes section
is implemented only in the global Onet.xml file

A ServerEmailFooter element can only be included in an Onet.xml file that is part of a site definition, not in an Onet.xml file that is part of a Web template.

ONET.XML defines the project and list defaults, as well as the base types for fields.

Base types:
    0 — Basic List
    1 — Document Library
    2 — unused
    3 — Discussion List
    4 — Survey

If “Site Definition” is mentioned, look for ONET.XML…….






Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: