Share via


DocumentTemplates 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.

Contains the collection of document library templates that are available for creating document libraries. This collection is listed in the Template Type drop-down list box on the New Document Library page.

<DocumentTemplates>
</DocumentTemplates>

Attributes

Attribute

Description

None

N/A

Child Elements

DocumentTemplate

Parent Elements

Project

Occurrences

Minimum: 0

Maximum: 1

Example

The following excerpt from the Onet.xml file for the standard Windows SharePoint Services 3.0 site definition (STS) defines the document templates that are available by default.

<DocumentTemplates>
  <DocumentTemplate Path="STS" Name="" DisplayName="$Resources:core,doctemp_None;" Type="100" Default="FALSE" Description="$Resources:core,doctemp_None_Desc;" />
  <DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Word;" Type="101" Default="TRUE" Description="$Resources:core,doctemp_Word_Desc;">
    <DocumentTemplateFiles>
      <DocumentTemplateFile Name="doctemp\word\wdtmpl.doc" TargetName="Forms/template.doc" Default="TRUE" />
    </DocumentTemplateFiles>
  </DocumentTemplate>
  <DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_FP;" Type="102" Description="$Resources:core,doctemp_FP_Desc;">
    <DocumentTemplateFiles>
      <DocumentTemplateFile Name="doctemp\fp\fptmpl.htm" TargetName="Forms/template.htm" Default="TRUE" />
    </DocumentTemplateFiles>
  </DocumentTemplate>
  <DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Excel;" Type="103" Description="$Resources:core,doctemp_Excel_Desc;">
    <DocumentTemplateFiles>
      <DocumentTemplateFile Name="doctemp\xl\xltmpl.xls" TargetName="Forms/template.xls" Default="TRUE" />
    </DocumentTemplateFiles>
  </DocumentTemplate>
  <DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Powerpoint;" Type="104" Description="$Resources:core,doctemp_Powerpoint_Desc;">
    <DocumentTemplateFiles>
      <DocumentTemplateFile Name="doctemp\ppt\pptmpl.pot" TargetName="Forms/template.pot" Default="TRUE" />
    </DocumentTemplateFiles>
  </DocumentTemplate>
  <DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_OneNote;" Type="111" Description="$Resources:core,doctemp_OneNote_Desc;">
    <DocumentTemplateFiles>
      <DocumentTemplateFile Name="doctemp\onenote\template.one" TargetName="Forms/template.one" Default="TRUE" />
    </DocumentTemplateFiles>
  </DocumentTemplate>
  <DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_DataConnection;" Type="130" Description="$Resources:core,doctemp_DataConnection_Desc;">
    <DocumentTemplateFiles>
      <DocumentTemplateFile Name="doctemp\dcl\template.odc" TargetName="Forms/template.odc" Default="TRUE" />
    </DocumentTemplateFiles>
  </DocumentTemplate>
  <DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_BasicPage;" Type="105" Description="$Resources:core,doctemp_BasicPage_Desc;">
    <DocumentTemplateFiles>
      <DocumentTemplateFile Name="doctemp\blankpgs\_basicpage.htm" TargetName="Forms/_basicpage.htm" Default="TRUE" />
    </DocumentTemplateFiles>
  </DocumentTemplate>
  <DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_WebPartPage;" Type="106" Description="$Resources:core,doctemp_WebPartPage_Desc;">
    <DocumentTemplateFiles>
      <DocumentTemplateFile Name="doctemp\smartpgs\_webpartpage.htm" TargetName="Forms/_webpartpage.htm" Default="TRUE" />
    </DocumentTemplateFiles>
  </DocumentTemplate>
  <DocumentTemplate XMLForm="TRUE" Path="STS" DisplayName="$Resources:core,doctemp_BlankForm;" Type="1000" Default="TRUE" Description="$Resources:core,doctemp_BlankForm_Desc;">
    <DocumentTemplateFiles>
      <DocumentTemplateFile Name="doctemp\xmlforms\blank\template.xml" TargetName="Forms/template.xml" Default="TRUE" />
    </DocumentTemplateFiles>
  </DocumentTemplate>
</DocumentTemplates>