DocumentTemplates Element
The DocumentTemplates element is a collection of document library templates to be available when creating a new document library. This collection is listed in the Template Type drop-down list box on the New Document Library page.
Syntax
<DocumentTemplates>
</DocumentTemplates>
Related Elements
Parent Elements | Child Elements |
---|---|
Project | DocumentTemplate |
Example
The following example, an excerpt from the web server extensions ONET.XML file, defines the document templates that are available by default in SharePoint Team Services from Microsoft.
<DocumentTemplates>
<DocumentTemplate Name="" DisplayName="None" Type="100" Default="FALSE"
Description="This document library will not use templates.">
</DocumentTemplate>
<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>
<DocumentTemplate DisplayName="Blank Microsoft FrontPage Document"
Type="102" Description="A blank Microsoft FrontPage HTML document.">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="fp\fptmpl.htm" TargetName="template.htm"
Default="TRUE"/>
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate DisplayName="Blank Microsoft Excel Document"
Type="103" Description="A blank Microsoft Excel HTML document.">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="xl\xltmpl.htm" TargetName="template.htm"
Default="TRUE"/>
<DocumentTemplateFile Name="xl\sheet001.htm" TargetName="template_files/sheet001.htm"/>
<DocumentTemplateFile Name="xl\sheet002.htm" TargetName="template_files/sheet002.htm"/>
<DocumentTemplateFile Name="xl\sheet003.htm" TargetName="template_files/sheet003.htm"/>
<DocumentTemplateFile Name="xl\filelist.xml" TargetName="template_files/filelist.xml"/>
<DocumentTemplateFile Name="xl\style.css" TargetName="template_files/stylesheet.css"/>
<DocumentTemplateFile Name="xl\tabstrip.htm" TargetName="template_files/tabstrip.htm"/>
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate DisplayName="Blank Microsoft PowerPoint Document" Type="104"
Description="A blank Microsoft PowerPoint HTML document.">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="ppt\pptmpl.htm" TargetName="template.htm"
Default="TRUE"/>
<DocumentTemplateFile Name="ppt\slide001.htm" TargetName="template_files/slide001.htm"/>
<DocumentTemplateFile Name="ppt\filelist.xml" TargetName="template_files/filelist.xml"/>
<DocumentTemplateFile Name="ppt\master03.css" TargetName="template_files/master03.css"/>
<DocumentTemplateFile Name="ppt\master03.htm" TargetName="template_files/master03.htm"/>
<DocumentTemplateFile Name="ppt\master03.xml" TargetName="template_files/master03.xml"/>
<DocumentTemplateFile Name="ppt\pres.xml" TargetName="template_files/pres.xml"/>
<DocumentTemplateFile Name="ppt\preview.wmf" TargetName="template_files/preview.wmf"/>
</DocumentTemplateFiles>
</DocumentTemplate>
</DocumentTemplates>