ListInstance Element (List Instance)

Specifies default data with which to provision the given list type.

<ListInstance
  Description = "Text"
  FeatureId = "Text"
  Id = Text
  OnQuickLaunch = "TRUE" | "FALSE"
  QuickLaunchUrl = "Text"
  RootWebOnly = "TRUE" | "FALSE"
  TemplateType = Integer
  Title = "Text"
  Url = "Text"
</ListInstance>
Attributes

Attribute Description

Description

Optional Text. Contains a description of the list.

FeatureId

Required Text. Specifies the GUID of the Feature. If you do not specify a Feature GUID, Windows SharePoint Services uses the ID of the default Feature, in other words, the one containing the ListInstance element. If the list template for the list instance is contained within a different Feature, you must specify the ID of that Feature through the FeatureId attribute.

Id

Required Text. Specifies a unique identifier for the list instance. The integer must be unique across the Feature definition.

OnQuickLaunch

Optional Boolean. TRUE to display lists created from the list definition on the Quick Launch bar.

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.

TemplateType

Required Integer. Returns the integer identifier of the list template to use.

Title

Required Text. Title of the list in the schema.

Url

Required Text. Returns the site-relative URL at which to place the list.

Child Elements

Parent Elements

Occurrences

Minimum: 0

Maximum: Unbounded

Remarks

The ListInstance Feature element maps to the List element as used in Windows SharePoint Services 2.0 within the Configuration element in Onet.xml.

Example

For an example of how this element is used, see List Instances.

Tags :


Community Content

Thomas Lee
ListInstance Id
The above states it is an integer - although I have found this could be in error.

The wss.xsd represents the Id attribute as a string and most people I've seen on the net use GUID's or unique keywords.
Tags : contentbug?

steveethomas
FeatureId
The value for this attribute should be set to the feature id of the feature that defines the list template. E.g. if TemplateType = 103, set FeatureId = <id of feature that defines LinksList in 12 hive.>
Tags :

Thomas Lee
PsuedoXML malformed
The pseudo-XML here does not ever close the opening tag.
Tags : contentbug

Page view tracker