In my SharePoint 2013 site definition I want to attach a document template file, like a docx. But when I put this
<DocumentTemplates>
<DocumentTemplate DisplayName="Blank Document" Type="101"
Default="FALSE" Description="A blank document.">
<DocumentTemplateFiles>
<DocumentTemplateFile
Name="doctemp/Template_Folder/template.dotx"
TargetName="Forms/template.dotx" Default="True"/>
</DocumentTemplateFiles>
</DocumentTemplate>
</DocumentTemplates>
It says the file can't be found. I don't understand how to add this file and where.
https://msdn.microsoft.com/en-us/library/office/aa978104%28v=office.14%29.aspx
This page says
> The DisplayName attribute of the DocumentTemplate element specifies the text that is displayed in the drop-down list for selecting a document template type when you create a new document library. The Type attribute uniquely identifies the document type and can be any integer that is not already used for another document template. The Default attribute specifies whether the template is selected by default in the drop-down list. The Name attribute of the DocumentTemplateFile specifies the physical path to the template file on the server computer, and the TargetName attribute specifies the address of the template relative to the document library.
But where is the `address of the template relative to the document library`?
The `Type` attribute refers to a list definition (doc lib) that I made in the Visual Studio project. Do I need to add the dotx file in the project?
<DocumentTemplates>
<DocumentTemplate DisplayName="Blank Document" Type="101"
Default="FALSE" Description="A blank document.">
<DocumentTemplateFiles>
<DocumentTemplateFile
Name="doctemp/Template_Folder/template.dotx"
TargetName="Forms/template.dotx" Default="True"/>
</DocumentTemplateFiles>
</DocumentTemplate>
</DocumentTemplates>
It says the file can't be found. I don't understand how to add this file and where.
https://msdn.microsoft.com/en-us/library/office/aa978104%28v=office.14%29.aspx
This page says
> The DisplayName attribute of the DocumentTemplate element specifies the text that is displayed in the drop-down list for selecting a document template type when you create a new document library. The Type attribute uniquely identifies the document type and can be any integer that is not already used for another document template. The Default attribute specifies whether the template is selected by default in the drop-down list. The Name attribute of the DocumentTemplateFile specifies the physical path to the template file on the server computer, and the TargetName attribute specifies the address of the template relative to the document library.
But where is the `address of the template relative to the document library`?
The `Type` attribute refers to a list definition (doc lib) that I made in the Visual Studio project. Do I need to add the dotx file in the project?