Share via


ListTemplates Element

The ListTemplates element is a collection of the templates that define a list in a project. Used in the list of templates in ONET.XML (web server extensions folder).

Syntax

<ListTemplates>
</ListTemplates>
Parent Elements Child Elements
Project ListTemplate

Example

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

<ListTemplates>
  <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>
  <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"
    DocumentTemplate="101">
  </ListTemplate>
  <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>
  <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."
    Image="_layouts/images/itdisc.gif">
  </ListTemplate>
  <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."
    Image="_layouts/images/itlink.gif">
  </ListTemplate>
  <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."
    Image="_layouts/images/itann.gif">
  </ListTemplate>
  <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"
    Image="_layouts/images/itcontct.gif">
  </ListTemplate>
  <ListTemplate Name="events" DisplayName="Events" Type="106" BaseType="0"
    Default="TRUE" OnQuickLaunch="FALSE" SecurityBits="111"
    Description="Keep each other informed of upcoming events."
    Image="_layouts/images/itevent.gif">
  </ListTemplate>
  <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." 
    Image="_layouts/images/ittask.gif">
  </ListTemplate>
</ListTemplates>