ListTemplate Element

The ListTemplate element is used in the list of templates in ONET.XML to define a template for a list.


  BaseType = "0" | "1" | "2" |"3" | "4"
  Default = "TRUE" | "FALSE"
  Description = "Text"
  DisplayName = "Text"
  DocumentTemplate = "Integer"
  Image = "URL"
  Name = "Text"
  OnQuickLaunch = "TRUE" | "FALSE"
  Type = "Integer">


Name Description
BaseType Required Integer. Specifies the base type, or default schema, for lists created from the template.
Default Optional Boolean. TRUE if new SharePoint team Web sites will include this list.
Description Optional Text. Provides a description of the template.
DisplayName Required Text. Specifies the display name of the template.
DocumentTemplate Optional Integer. Currently unused. This is only valid in a ListTemplate element whose BaseType is set to 1 (document libraries). For future compatibility, this should either be left blank or correspond to the Type attribute of a DocumentTemplate element in the DocumentTemplates enumeration.
Image Optional URL. Specifies a URL to an icon used to represent a list.
Name Required Text. Specifies the internal name of the template. No spaces or special characters can be used.
OnQuickLaunch Optional Boolean. TRUE if new sites will display the list on the Quick Launch bar.
SecurityBits Optional Text. Defines read, write, and schema design security. Each digit in the string corresponds to the three security settings contained in the List of Lists database table.
Type Optional Integer. Provides a unique identifier for the template.
Parent Elements


The following example defines the templates available on the Create page for a team Web site.

  <ListTemplate Name="custlist" DisplayName="Custom List" Type="100" BaseType="0"
    Default="FALSE" OnQuickLaunch="FALSE" SecurityBits="111"
    Description="Design a custom list." Image="_layouts/images/itgen.gif">
  <ListTemplate Name="doclib" DisplayName="Document Library" Type="101" BaseType="1"
    Default="TRUE" OnQuickLaunch="TRUE" SecurityBits="111"
    Description="Share documents with others." Image="_layouts/images/itdl.gif"
  <ListTemplate Name="voting" DisplayName="Survey" Type="102" BaseType="4"
    Default="FALSE" OnQuickLaunch="FALSE" SecurityBits="122"
    Description="Create a survey." Image="_layouts/images/itsurvey.gif">
  <ListTemplate Name="discuss" DisplayName="Discussion Board" Type="108" BaseType="3" 
    Default="TRUE" OnQuickLaunch="TRUE" SecurityBits="122" 
    Description="Use newsgroup-style discussions for topics relevant to your team."
  <ListTemplate Name="favorite" DisplayName="Links" Type="103" BaseType="0"
    Default="TRUE" OnQuickLaunch="FALSE" SecurityBits="111" 
    Description="Provide your team with shortcuts to favorite Web pages."
  <ListTemplate Name="announce" DisplayName="Announcements" Type="104" BaseType="0"
    Default="TRUE" OnQuickLaunch="FALSE" SecurityBits="111"
    Description="Makes it easy for team members to post news and information."
  <ListTemplate Name="contacts" DisplayName="Contacts" Type="105" BaseType="0"
    Default="TRUE" OnQuickLaunch="TRUE" SecurityBits="111"
    Description="Displays information about people that your team works with"
  <ListTemplate Name="events" DisplayName="Events" Type="106" BaseType="0"
    Default="TRUE" OnQuickLaunch="FALSE" SecurityBits="111"
    Description="Keep each other informed of upcoming events."
  <ListTemplate Name="tasks" DisplayName="Tasks" Type="107" BaseType="0"
    Default="TRUE" OnQuickLaunch="TRUE" SecurityBits="111"
    Description="Keep track of work that you or your team needs to complete."

See Also

Universal Attributes for Page Rendering Elements