List Element (Site)
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Specifies a list instance to include in sites created through the site definition.
<List
Description = "Text"
EmailAlias = "Text"
EnableContentTypes = "TRUE" | "FALSE"
EnableMinorVersions = "TRUE" | "FALSE"
FeatureId = "GUID"
ForceCheckout = "TRUE" | "FALSE"
QuickLaunchUrl = URL
RootWebOnly = "TRUE" | "FALSE"
Title = "Text"
Type = Integer
Url = "URL"
VersioningEnabled = "TRUE" | "FALSE">
</List>
Attributes
Attribute |
Description |
|
---|---|---|
Description |
Optional Text. Provides a description for the list. This attribute must be specified within a configuration in an Onet.xml file when you are adding a custom list definition to a site definition. The value of this attribute overrides the value contained with the DefaultDescription element of a Schema.xml file. |
|
EmailAlias |
Optional Text. If e-mail notification is enabled, specifies the e-mail address to use to notify to the owner of an item when an assignment has changed or the item has been updated. |
|
EnableContentTypes |
Optional Boolean. TRUE to enable management of content types in lists created through the list definition. |
|
EnableMinorVersions |
Optional Boolean. TRUE to enable minor versions for items in the list. |
|
FeatureId |
Optional GUID. Specifies the GUID of a Feature to associate with the list. |
|
ForceCheckout |
Optional Boolean. TRUE to require that documents be checked out from the document library in order to be edited. |
|
QuickLaunchUrl |
Optional Text. Specifies the URL of the view page to open for the list through Quick Launch navigation. |
|
RootWebOnly |
Optional Boolean. TRUE to specify that the list created from the definition exists only in the root Web site of a site collection. |
|
Title |
Required Text. The generic display name of the list. |
|
Type |
Optional Integer. Specifies the list template type of the list. The following values are the default list template types. This attribute corresponds to the Type attribute of the ListTemplate element. |
|
Url |
Optional Text. Specifies the path to the root of the directory that contains the ASPX files to which the list definition applies, relative to the root URL of the Web site. |
|
VersioningEnabled |
Optional Boolean. TRUE to specify within a Schema.xml file that versioning is enabled by default for document libraries that are created through the list definition. Setting this attribute has no effect on existing document libraries. If TRUE, versioning can still be disabled for a document library on the New Document Library page when the library is being created. |
Child Elements
Parent Elements
Occurrences
Minimum: 0 Maximum: Unbounded |