DocumentTemplate Element
The DocumentTemplate element defines a document library template for the New Document Library page in a Web site based on SharePoint Team Services from Microsoft.
Syntax
<DocumentTemplate
Default = "TRUE" | "FALSE"
Description = "Text"
DisplayName = "Text"
Type = "Number">
</DocumentTemplate>
Attributes
Name | Description |
---|---|
Default | Optional Boolean. TRUE if this template is the default choice in the Template Type drop-down list box of the New Document Library page. |
Description | Optional Text. A description of the template. |
DisplayName | Required Text. The displayed name of the template. |
Type | Required Integer. Specifies a unique ID for the template. |
Related Elements
Parent Elements | Child Elements |
---|---|
DocumentTemplates | DocumentTemplateFiles |
Example
The following example specifies a Microsoft Word HTML template as the default template on the New Document Library page.
<DocumentTemplate DisplayName="Blank Microsoft Word Document" Type="101" Default="TRUE"
Description="A blank Microsoft Word HTML document.">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="word\wdtmpl.htm" TargetName="template.htm" Default="TRUE"/>
</DocumentTemplateFiles>
</DocumentTemplate>