SlideShare a Scribd company logo
1 of 6
Set a file template for a document or form library
Applies to: Microsoft SharePoint Foundation 2010 , SharePoint Server 2010



When you create a document or form library, you can set a default file template for that library. When
someone creates a new file in the library, the default template opens in the appropriate program. For
example in a document library, you can set a Microsoft Office Word 2010 template. When someone
creates a new file in that document library, the template opens in Word.

If you want to specify additional settings or provide default content that appears in every new file, such as
a preferred outline for a marketing campaign proposal or an official disclaimer in a page footer, you can
also add this information to the template.

 NOTE    Setting up a template for a document or form library requires Full Control permission.



Learn about file templates in a document or form library


When you create a document or form library, you can set a default file template for that library. When
someone creates a new file in the library, the default template opens in the appropriate program. For
example in a document library, you can set a Microsoft Office Word 2010 template. When someone
creates a new file in that document library, the template opens in Word.

If you want to specify additional settings or provide default content that appears in every new file, such as
a preferred outline for a marketing campaign proposal or an official disclaimer in a page footer, you can
also add this information to the template.

The types of files you can or cannot store in a SharePoint library
Depending on the file you have in a library, SharePoint 2010 does the following:

Files compatible with SharePoint 2010       For a user to create a file by using theNew command in a
document library, the file template must be created from a program that is compatible with SharePoint
2010, such as Microsoft Office Word 2010. When you create a new file in a form library, the default
program can be either an XML-based form design program that is compatible with SharePoint 2010, such
as Microsoft InfoPath 2010.

Other program files     For most other programs, you can still store and manage the file in the library. But
instead of directly creating the file from the document library, you can create the file in your program and
then add it to the library later.

Blocked program files For security reasons, some program file types, such as .exe, are blocked from
being stored in a library.
THE TWO TYPES OF LIBRARIES THAT USE FILE TEMPLATES
The two types of libraries that use templates are document and form libraries.

Document Libraries      You use a document library to store and manage many different file types,
including documents, spreadsheets, presentations, text files, and other types of files. A document library is
often the most common location on a site where you can create, collect, update, and manage files with
team members and share with other colleagues throughout your enterprise. You can use a document
library as a general-purpose file repository. Or you can use a document library for a specific purpose, for
example, a marketing team may have its own document library for planning materials, news releases, and
publications.

Form Libraries    A form library provides a simple way for you to share and track XML-based forms that
are used to gather information. For example, you can create a form library for your department’s expense
report forms. The expense report form template is stored as the default file template in the form library.
Each time someone creates an expense report, they open the template as a blank form, which contains
the layout, fields, and calculations of the expense report. When someone fills out the form, the expense
report data (and only the data) is saved as an XML file in the form library. By separating the data from the
form, it’s much easier to process each expense report separately by other systems, merge the data, or
export it for further processing and analysis.


WHERE THE FILE TEMPLATES ARE STORED IN THE LIBRARY
When a document or form library has a default file template, it is stored in the Forms folder of the library.

Open the library in Windows Explorer to see the Forms folder which contains the file template for the
library.




By default, a document library has a file template, called template.dotx, but you can change this file if you
need to. To specify a different template, you need to first create it in a program that is compatible with
SharePoint 2010, such as Office Word 2010, and then save it to the Forms folder of a library. Then, from
the library, you specify the address of the custom template.




©2009 Microsoft Corporation.
By default, a form library comes with a placeholder file, called template.xml, that you must replace with a
     form template that you create.


     CREATING A FILE TEMPLATE FOR A FORM LIBRARY
     To create or customize a template in a form library, you can use an XML-based form design program that
     is compatible with SharePoint 2010, such as Microsoft Office InfoPath 2010. There can be additional
     advantages to using a form design program. For example, when you use Office InfoPath 2010, you can do
     the following:

     Create the form library and template directly from InfoPath.
     Conveniently edit and re-publish the form template to the form library.
     Merge the individual XML data files created from some form templates for further processing.
     Promote the fields of XML data to library columns in the form library.

     For more information see the Help system for Office InfoPath 2010.

     When a user creates a form, it opens by default in the form-editing program that is compatible with
     SharePoint 2010 on the user’s client computer. If no compatible program is installed, the form, if it is
     designed to open in the browser can open in the browser. If you want, you can specify that a form
     designed to open in a browser always opens in the browser. You can change the default behavior in
     the Opening Documents in the Browser setting in the advanced settings of the library.


     USING CONTENT TYPES TO SET UP DOCUMENT OR FORM LIBRARY TEMPLATES
     If multiple content types are enabled and templates are specified for those content types, the library uses
     the templates that are specified by the content types, and not the default file template. In this case, if you
     want to customize the templates for the library, you must change the content types.


     Set up a default file template when you create a document or form library

1.   Navigate to the site where you want to create the library.

2.   Click Site Actions, click View All Site Content, and then click Create.


      NOTE     A SharePoint site can be significantly modified in appearance and navigation. If you cannot
     locate an option, such as a command, button, or link, contact your administrator.
3.   Under Libraries, click Document Library or Form Library.

4.   In the Name box, type a name for the library. The library name is required.
     The name appears at the top of the library page, becomes part of the address for the library page, and
     appears in navigational elements that help users to find and open the library.

5.   In the Description box, type a description of the purpose of the library. The description is optional.
     The description appears at the top of the library page, underneath the name of the library. If you plan to




     ©2009 Microsoft Corporation.
enable the library to receive content by e-mail, you can add the e-mail address of the library to its
     description, so that people can easily find it.

6.   To add a link to this library on the Quick Launch, verify that Yes is selected in the Navigation section.

7.   In the Document Version History section, click Yes if you want a version, or a backup copy, of a file to be
     created each time a file is checked into the library.

8.   In the Document Template section, do one of the following:

     Document library Specify the type of file to be used as a template for new files in the document library.
     The following file types are available by default:

            None
            Microsoft Word 97-2003 document
            Microsoft Excel 97-2003 spreadsheet
            Microsoft PowerPoint 97-2003 presentation
            Microsoft Word document
            Microsoft Excel spreadsheet
            Microsoft PowerPoint presentation
            Microsoft OneNote 2010 Notebook
            Microsoft SharePoint Designer Web page
            Basic page
            Web Part page

     Form library    Select the form template that you want to specify as the type of form for all forms in the
     library.

9.   Click Create.


     Change the default file template for a document or form library

     There are two ways you can change the default template:

     If your document or form library has a default file template for a program compatible with SharePoint
     2010, then you can edit the default template.
     For other programs, you cannot directly edit the default template, but you can copy a new template file to
     the Forms folder of the library to specify a custom template.



     EDIT THE DEFAULT FILE TEMPLATE
1.   Navigate to the site containing the library for which you want to edit the default template.




     ©2009 Microsoft Corporation.
2.   Click the name of the library on the Quick Launch, or click Site Actions, click View All Site Content, and
     then in the appropriate library section, click the name of the library.


      NOTE     A SharePoint site can be significantly modified in appearance and navigation. If you cannot
     locate an option, such as a command, button, or link, contact your administrator.
3.   In the ribbon, under the Library Tools section, click the Library tab, and then in the Settings group,
     click Document Library Settings or Form Library Settings.

4.   Under General Settings, click Advanced settings.

5.   In the Document Template section, under the Template URL box, click Edit Template. One of the
     following happens:

     Document library      The template opens in an application that is compatible with SharePoint 2010 and
     that is associated with the file type of the current template. For example, Office Word 2010 opens if the
     default template is a Word template, or Office Excel 2010 opens if the default template is an Excel
     worksheet.

     Form library The template opens either in a program compatible with SharePoint 2010, either an XML-
     based form design program, such as Microsoft Office InfoPath 2010, or an XML editor.

      NOTE     If people on your site already filled out forms that were based on the original template, consider
     how any changes to the template may affect those forms. For example, adding a field that users are
     required to fill out may cause errors to appear in the original forms that were filled out before the field
     was added.
6.   Make the changes that you want, and then save the template. Close the program if you no longer need it
     open, or switch to your SharePoint site.

7.   Depending on your form design program, you may need to republish the template to the library on your
     SharePoint site from your program.

8.   In your SharePoint site, at the bottom of the Document or Form Library Advanced Settings page, click OK.


     SPECIFY A CUSTOM FILE TEMPLATE
1.   Create and save your custom template in a program that is compatible with SharePoint 2010. Make note
     of its location, and then switch to SharePoint 2010.

2.   Navigate to the site containing the library for which you want to specify a custom template.

3.   Click the name of the library on the Quick Launch, or click Site Actions, click View All Site Content, and
     then in the appropriate library section, click the name of the library.
     Note A SharePoint site can be significantly modified in appearance and navigation. If you cannot locate an
     option, such as a command, button, or link, contact your administrator.

4.   In the ribbon, click the Library tab, and then in the Connect & Export group, click Open with Explorer.

5.   In Windows Explorer, browse to find the custom template that you created.




     ©2009 Microsoft Corporation.
6.   Right-click the file, and then click Copy on the shortcut menu.

7.   Click the Back button until you return to the library, and then click the Formsfolder to open it.

8.   Right-click in a blank area in the folder window, and then click Paste on the shortcut menu.

9.   Close Windows Explorer and return to the library on the site.

10. On the Settings menu, click Document Library Settings or Form Library Settings.

11. Under General Settings, click Advanced settings.

12. In the Document Template section, do one of the following:

     Document library      Type the address of your custom template in the Template URL box. The location is
     the Web address of the template on the SharePoint site, relative to the name of the site. For example, if
     your template is called Watermark.dotx, and you add it to the Forms folder of the Shared Documents,
     document library, you would type the following:

     Shared Documents/Forms/Watermark.dotx

     Form Library     Type the address of the custom template that you want to use in the Template URL box.
     The location is the Web address of the template on the SharePoint site, relative to the name of the site.
     For example, if your template is called Orders.xml, and you add it to the Forms folder of
     the Purchases form library, you would type the following:

     Purchases/Forms/Orders.xsn

      NOTE     If the settings in the Document Template box are not available, an administrator may have set
     up multiple content types. To see whether multiple content types are enabled, verify that Yes is selected
     under Allow management of content types? in the Content Types section immediately above
     the Document Templates section. If it is, you must edit the template for the content type.




     ©2009 Microsoft Corporation.

More Related Content

More from EPC Group

Windows Server 2012 Deep-Dive - EPC Group
Windows Server 2012 Deep-Dive - EPC GroupWindows Server 2012 Deep-Dive - EPC Group
Windows Server 2012 Deep-Dive - EPC Group
EPC Group
 
Understanding Windows Azure’s Active Directory (AD) and PowerShell Tools
Understanding Windows Azure’s Active Directory (AD) and PowerShell ToolsUnderstanding Windows Azure’s Active Directory (AD) and PowerShell Tools
Understanding Windows Azure’s Active Directory (AD) and PowerShell Tools
EPC Group
 
PowerShell with SharePoint 2013 and Office 365 - EPC Group
PowerShell with SharePoint 2013 and Office 365 - EPC GroupPowerShell with SharePoint 2013 and Office 365 - EPC Group
PowerShell with SharePoint 2013 and Office 365 - EPC Group
EPC Group
 

More from EPC Group (20)

Pop the Hood on Microsoft Teams - EPC Group
Pop the Hood on Microsoft Teams - EPC GroupPop the Hood on Microsoft Teams - EPC Group
Pop the Hood on Microsoft Teams - EPC Group
 
Windows Server 2012 Deep-Dive - EPC Group
Windows Server 2012 Deep-Dive - EPC GroupWindows Server 2012 Deep-Dive - EPC Group
Windows Server 2012 Deep-Dive - EPC Group
 
Understanding Windows Azure’s Active Directory (AD) and PowerShell Tools
Understanding Windows Azure’s Active Directory (AD) and PowerShell ToolsUnderstanding Windows Azure’s Active Directory (AD) and PowerShell Tools
Understanding Windows Azure’s Active Directory (AD) and PowerShell Tools
 
PowerShell with SharePoint 2013 and Office 365 - EPC Group
PowerShell with SharePoint 2013 and Office 365 - EPC GroupPowerShell with SharePoint 2013 and Office 365 - EPC Group
PowerShell with SharePoint 2013 and Office 365 - EPC Group
 
Understanding Office 365’s Identity Solutions: Deep Dive - EPC Group
Understanding Office 365’s Identity Solutions: Deep Dive - EPC GroupUnderstanding Office 365’s Identity Solutions: Deep Dive - EPC Group
Understanding Office 365’s Identity Solutions: Deep Dive - EPC Group
 
System Center 2012 SP1 - Overview - EPC Group
System Center 2012 SP1 - Overview - EPC GroupSystem Center 2012 SP1 - Overview - EPC Group
System Center 2012 SP1 - Overview - EPC Group
 
Windows Azure Pack Enabling Virtual Machines - IaaS & Virtual Machine Role - ...
Windows Azure Pack Enabling Virtual Machines - IaaS & Virtual Machine Role - ...Windows Azure Pack Enabling Virtual Machines - IaaS & Virtual Machine Role - ...
Windows Azure Pack Enabling Virtual Machines - IaaS & Virtual Machine Role - ...
 
Lync 2013 - Audio - Quick Reference - 2 Page Reference - EPC Group
Lync 2013 - Audio - Quick Reference - 2 Page Reference - EPC GroupLync 2013 - Audio - Quick Reference - 2 Page Reference - EPC Group
Lync 2013 - Audio - Quick Reference - 2 Page Reference - EPC Group
 
Lync 2013 - Sharing and Collaboration - Quick Reference 2 Pager
Lync 2013 - Sharing and Collaboration - Quick Reference 2 PagerLync 2013 - Sharing and Collaboration - Quick Reference 2 Pager
Lync 2013 - Sharing and Collaboration - Quick Reference 2 Pager
 
Windows Server 2012 Deep-Dive - EPC Group
Windows Server 2012 Deep-Dive - EPC GroupWindows Server 2012 Deep-Dive - EPC Group
Windows Server 2012 Deep-Dive - EPC Group
 
Hyper-V’s Virtualization Enhancements - EPC Group
Hyper-V’s Virtualization Enhancements - EPC GroupHyper-V’s Virtualization Enhancements - EPC Group
Hyper-V’s Virtualization Enhancements - EPC Group
 
High Level Overview of Windows Azure - EPC Group
High Level Overview of Windows Azure - EPC GroupHigh Level Overview of Windows Azure - EPC Group
High Level Overview of Windows Azure - EPC Group
 
SharePoint 2013 and Office 365 External Sharing
SharePoint 2013 and Office 365 External SharingSharePoint 2013 and Office 365 External Sharing
SharePoint 2013 and Office 365 External Sharing
 
BizTalk Server 2010 - Invoking Restful Services - EPC Group
BizTalk Server 2010 - Invoking Restful Services - EPC GroupBizTalk Server 2010 - Invoking Restful Services - EPC Group
BizTalk Server 2010 - Invoking Restful Services - EPC Group
 
BizTalk Sever 2010 - Basic Principles of Maps - EPC Group
BizTalk Sever 2010 - Basic Principles of Maps - EPC GroupBizTalk Sever 2010 - Basic Principles of Maps - EPC Group
BizTalk Sever 2010 - Basic Principles of Maps - EPC Group
 
EPC Group and Continental Airlines ECM Case Study - SharePoint 2007 Global Study
EPC Group and Continental Airlines ECM Case Study - SharePoint 2007 Global StudyEPC Group and Continental Airlines ECM Case Study - SharePoint 2007 Global Study
EPC Group and Continental Airlines ECM Case Study - SharePoint 2007 Global Study
 
Driving End User Adoption in SharePoint 2013 & 2010 - EPC Group
Driving End User Adoption in SharePoint 2013 & 2010 - EPC GroupDriving End User Adoption in SharePoint 2013 & 2010 - EPC Group
Driving End User Adoption in SharePoint 2013 & 2010 - EPC Group
 
Join EPC Group's Monthly Newsletter
Join EPC Group's Monthly NewsletterJoin EPC Group's Monthly Newsletter
Join EPC Group's Monthly Newsletter
 
About EPC Group.net - EPC Group Overview
About EPC Group.net - EPC Group OverviewAbout EPC Group.net - EPC Group Overview
About EPC Group.net - EPC Group Overview
 
EPC Group SharePoint 2010 Social Computing Consulting Practice
EPC Group SharePoint 2010 Social Computing Consulting PracticeEPC Group SharePoint 2010 Social Computing Consulting Practice
EPC Group SharePoint 2010 Social Computing Consulting Practice
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

Set a-file-template-for-a-document-or-form-library - epc

  • 1. Set a file template for a document or form library Applies to: Microsoft SharePoint Foundation 2010 , SharePoint Server 2010 When you create a document or form library, you can set a default file template for that library. When someone creates a new file in the library, the default template opens in the appropriate program. For example in a document library, you can set a Microsoft Office Word 2010 template. When someone creates a new file in that document library, the template opens in Word. If you want to specify additional settings or provide default content that appears in every new file, such as a preferred outline for a marketing campaign proposal or an official disclaimer in a page footer, you can also add this information to the template. NOTE Setting up a template for a document or form library requires Full Control permission. Learn about file templates in a document or form library When you create a document or form library, you can set a default file template for that library. When someone creates a new file in the library, the default template opens in the appropriate program. For example in a document library, you can set a Microsoft Office Word 2010 template. When someone creates a new file in that document library, the template opens in Word. If you want to specify additional settings or provide default content that appears in every new file, such as a preferred outline for a marketing campaign proposal or an official disclaimer in a page footer, you can also add this information to the template. The types of files you can or cannot store in a SharePoint library Depending on the file you have in a library, SharePoint 2010 does the following: Files compatible with SharePoint 2010 For a user to create a file by using theNew command in a document library, the file template must be created from a program that is compatible with SharePoint 2010, such as Microsoft Office Word 2010. When you create a new file in a form library, the default program can be either an XML-based form design program that is compatible with SharePoint 2010, such as Microsoft InfoPath 2010. Other program files For most other programs, you can still store and manage the file in the library. But instead of directly creating the file from the document library, you can create the file in your program and then add it to the library later. Blocked program files For security reasons, some program file types, such as .exe, are blocked from being stored in a library.
  • 2. THE TWO TYPES OF LIBRARIES THAT USE FILE TEMPLATES The two types of libraries that use templates are document and form libraries. Document Libraries You use a document library to store and manage many different file types, including documents, spreadsheets, presentations, text files, and other types of files. A document library is often the most common location on a site where you can create, collect, update, and manage files with team members and share with other colleagues throughout your enterprise. You can use a document library as a general-purpose file repository. Or you can use a document library for a specific purpose, for example, a marketing team may have its own document library for planning materials, news releases, and publications. Form Libraries A form library provides a simple way for you to share and track XML-based forms that are used to gather information. For example, you can create a form library for your department’s expense report forms. The expense report form template is stored as the default file template in the form library. Each time someone creates an expense report, they open the template as a blank form, which contains the layout, fields, and calculations of the expense report. When someone fills out the form, the expense report data (and only the data) is saved as an XML file in the form library. By separating the data from the form, it’s much easier to process each expense report separately by other systems, merge the data, or export it for further processing and analysis. WHERE THE FILE TEMPLATES ARE STORED IN THE LIBRARY When a document or form library has a default file template, it is stored in the Forms folder of the library. Open the library in Windows Explorer to see the Forms folder which contains the file template for the library. By default, a document library has a file template, called template.dotx, but you can change this file if you need to. To specify a different template, you need to first create it in a program that is compatible with SharePoint 2010, such as Office Word 2010, and then save it to the Forms folder of a library. Then, from the library, you specify the address of the custom template. ©2009 Microsoft Corporation.
  • 3. By default, a form library comes with a placeholder file, called template.xml, that you must replace with a form template that you create. CREATING A FILE TEMPLATE FOR A FORM LIBRARY To create or customize a template in a form library, you can use an XML-based form design program that is compatible with SharePoint 2010, such as Microsoft Office InfoPath 2010. There can be additional advantages to using a form design program. For example, when you use Office InfoPath 2010, you can do the following: Create the form library and template directly from InfoPath. Conveniently edit and re-publish the form template to the form library. Merge the individual XML data files created from some form templates for further processing. Promote the fields of XML data to library columns in the form library. For more information see the Help system for Office InfoPath 2010. When a user creates a form, it opens by default in the form-editing program that is compatible with SharePoint 2010 on the user’s client computer. If no compatible program is installed, the form, if it is designed to open in the browser can open in the browser. If you want, you can specify that a form designed to open in a browser always opens in the browser. You can change the default behavior in the Opening Documents in the Browser setting in the advanced settings of the library. USING CONTENT TYPES TO SET UP DOCUMENT OR FORM LIBRARY TEMPLATES If multiple content types are enabled and templates are specified for those content types, the library uses the templates that are specified by the content types, and not the default file template. In this case, if you want to customize the templates for the library, you must change the content types. Set up a default file template when you create a document or form library 1. Navigate to the site where you want to create the library. 2. Click Site Actions, click View All Site Content, and then click Create. NOTE A SharePoint site can be significantly modified in appearance and navigation. If you cannot locate an option, such as a command, button, or link, contact your administrator. 3. Under Libraries, click Document Library or Form Library. 4. In the Name box, type a name for the library. The library name is required. The name appears at the top of the library page, becomes part of the address for the library page, and appears in navigational elements that help users to find and open the library. 5. In the Description box, type a description of the purpose of the library. The description is optional. The description appears at the top of the library page, underneath the name of the library. If you plan to ©2009 Microsoft Corporation.
  • 4. enable the library to receive content by e-mail, you can add the e-mail address of the library to its description, so that people can easily find it. 6. To add a link to this library on the Quick Launch, verify that Yes is selected in the Navigation section. 7. In the Document Version History section, click Yes if you want a version, or a backup copy, of a file to be created each time a file is checked into the library. 8. In the Document Template section, do one of the following: Document library Specify the type of file to be used as a template for new files in the document library. The following file types are available by default: None Microsoft Word 97-2003 document Microsoft Excel 97-2003 spreadsheet Microsoft PowerPoint 97-2003 presentation Microsoft Word document Microsoft Excel spreadsheet Microsoft PowerPoint presentation Microsoft OneNote 2010 Notebook Microsoft SharePoint Designer Web page Basic page Web Part page Form library Select the form template that you want to specify as the type of form for all forms in the library. 9. Click Create. Change the default file template for a document or form library There are two ways you can change the default template: If your document or form library has a default file template for a program compatible with SharePoint 2010, then you can edit the default template. For other programs, you cannot directly edit the default template, but you can copy a new template file to the Forms folder of the library to specify a custom template. EDIT THE DEFAULT FILE TEMPLATE 1. Navigate to the site containing the library for which you want to edit the default template. ©2009 Microsoft Corporation.
  • 5. 2. Click the name of the library on the Quick Launch, or click Site Actions, click View All Site Content, and then in the appropriate library section, click the name of the library. NOTE A SharePoint site can be significantly modified in appearance and navigation. If you cannot locate an option, such as a command, button, or link, contact your administrator. 3. In the ribbon, under the Library Tools section, click the Library tab, and then in the Settings group, click Document Library Settings or Form Library Settings. 4. Under General Settings, click Advanced settings. 5. In the Document Template section, under the Template URL box, click Edit Template. One of the following happens: Document library The template opens in an application that is compatible with SharePoint 2010 and that is associated with the file type of the current template. For example, Office Word 2010 opens if the default template is a Word template, or Office Excel 2010 opens if the default template is an Excel worksheet. Form library The template opens either in a program compatible with SharePoint 2010, either an XML- based form design program, such as Microsoft Office InfoPath 2010, or an XML editor. NOTE If people on your site already filled out forms that were based on the original template, consider how any changes to the template may affect those forms. For example, adding a field that users are required to fill out may cause errors to appear in the original forms that were filled out before the field was added. 6. Make the changes that you want, and then save the template. Close the program if you no longer need it open, or switch to your SharePoint site. 7. Depending on your form design program, you may need to republish the template to the library on your SharePoint site from your program. 8. In your SharePoint site, at the bottom of the Document or Form Library Advanced Settings page, click OK. SPECIFY A CUSTOM FILE TEMPLATE 1. Create and save your custom template in a program that is compatible with SharePoint 2010. Make note of its location, and then switch to SharePoint 2010. 2. Navigate to the site containing the library for which you want to specify a custom template. 3. Click the name of the library on the Quick Launch, or click Site Actions, click View All Site Content, and then in the appropriate library section, click the name of the library. Note A SharePoint site can be significantly modified in appearance and navigation. If you cannot locate an option, such as a command, button, or link, contact your administrator. 4. In the ribbon, click the Library tab, and then in the Connect & Export group, click Open with Explorer. 5. In Windows Explorer, browse to find the custom template that you created. ©2009 Microsoft Corporation.
  • 6. 6. Right-click the file, and then click Copy on the shortcut menu. 7. Click the Back button until you return to the library, and then click the Formsfolder to open it. 8. Right-click in a blank area in the folder window, and then click Paste on the shortcut menu. 9. Close Windows Explorer and return to the library on the site. 10. On the Settings menu, click Document Library Settings or Form Library Settings. 11. Under General Settings, click Advanced settings. 12. In the Document Template section, do one of the following: Document library Type the address of your custom template in the Template URL box. The location is the Web address of the template on the SharePoint site, relative to the name of the site. For example, if your template is called Watermark.dotx, and you add it to the Forms folder of the Shared Documents, document library, you would type the following: Shared Documents/Forms/Watermark.dotx Form Library Type the address of the custom template that you want to use in the Template URL box. The location is the Web address of the template on the SharePoint site, relative to the name of the site. For example, if your template is called Orders.xml, and you add it to the Forms folder of the Purchases form library, you would type the following: Purchases/Forms/Orders.xsn NOTE If the settings in the Document Template box are not available, an administrator may have set up multiple content types. To see whether multiple content types are enabled, verify that Yes is selected under Allow management of content types? in the Content Types section immediately above the Document Templates section. If it is, you must edit the template for the content type. ©2009 Microsoft Corporation.