Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
General Reference
Feature Schemas
List Instances
 ListInstance Element

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
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>
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.

Minimum: 0

Maximum: Unbounded

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

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
ListInstance Id      Ezz ... Thomas Lee   |   Edit   |   Show History
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.
FeatureId      steveethomas   |   Edit   |   Show History
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 What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker