Export (0) Print
Expand All

DocumentTemplate Element (Site)

Windows SharePoint Services 3

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.

Defines a document library template for the New Document Library page in a Web site based on Windows SharePoint Services.


<DocumentTemplate
  Default = "TRUE" | "FALSE"
    Description = "Text"
  DisplayName = "Text"
  Name = "Text"
  Path = "Text"
  Type = "Number">
</DocumentTemplate>

Attribute

Description

Default

Optional Boolean. TRUE if the template is the default choice in the TemplateType drop-down list box of the New Document Library page.

Description

Optional Text. A description of the template.

DisplayName

Required Text. The display name of the template.

Name

Optional Text. The internal name of the template.

Path

Optional Text. The name of the site template to which the document template belongs.

Type

Required Integer. A unique ID for the template.

XMLForm

Optional Boolean. TRUE if the document template applies to a form library.

Minimum: 0

Maximum: Unbounded

The following example defines a Microsoft Office Excel 2007 document library template.

<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>
Show:
© 2014 Microsoft