Training
Module
Explore Power Pages templates - Training
Learn about Power Pages templates, pre-configured solutions that are available to help accelerate deployment.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Important
The functionality of saving a site as a template described in this article is only supported in SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 (classic sites only), and SharePoint Online (classic sites only).
It is not supported in SharePoint Online (modern sites) or SharePoint Server 2019 (modern sites). SharePoint Online environments should use the new Site Templates.
Learn how to design and build robust applications by using SharePoint site templates.
You can design and build robust SharePoint applications that include a rich set of data sources, customer-facing views and forms, highly customized workflows, and more. Once you've built your business solution site, you can start to use it immediately in your SharePoint environment. Or, you can turn your solution into a template and deploy it in another environment, make it available to users so they can create new sites from it, or hand it off for additional development in Visual Studio.
SharePoint site templates are prebuilt definitions designed around a particular business need. You can use these templates as they are to create your own SharePoint site, and then customize the site as much as you want. You're probably familiar with the default site templates, such as Team Site, Project Site, and Communities Site.
In addition to the default templates, you can create your own site template based on a site you've created and customized. This is a powerful feature that allows you to create a custom solution and then share that solution with your peers, the broader organization, or outside organizations. You can also package the site and open it in another environment or application such as Visual Studio and also customize it there.
Turning your customized site or business solution into a template is an extremely useful and very powerful capability. Once you start to package your solution as a template, you begin to realize the potential of SharePoint as a platform for business applications. The site template option makes all of this possible.
When you save your site as a template, you create a Web Solution Package, or WSP. A WSP is a CAB file that uses the solution manifest. The solution that you create is stored in the solutions gallery for the SharePoint site collection. Once you save the template, a solution file (.wsp) is created and stored in the solutions gallery where you can download or activate the solution.
Note
The WSP you create is a partial trust user solution that has the same declarative format as a full trust SharePoint solution. However, it does not support the full extent of feature element types that are supported by full trust solutions.
When you save a SharePoint site as a template, you're saving the overall framework of the site — its lists and libraries, views and forms, and workflows. In addition to these components, you can include the contents of the site in the template; for example, the documents stored in the document libraries. This could be useful to provide sample content for users to get started with. Consider that this could also increase the size of your template beyond the default 50-MB site template limit.
Most of the objects in a site are included and supported by the template. However, there are several objects and features that are not supported.
Supported Lists, libraries, external lists, data source connections, list views and data views, custom forms, workflows, content types, custom actions, navigation, site pages, master pages, modules, and web templates.
Unsupported Customized permissions, running workflow instances, list item version history, workflow tasks associated with running workflows, people or group field values, taxonomy field values, publishing pages and publishing sites, My Sites, stapled features, SharePoint Add-ins, and remote event receivers.
Note
For publishing sites, you can use site definition templates. For more information, see Additional resources at the end of this topic.
Saving a site as a template is a powerful feature because it offers so many uses of custom sites. Here are the immediate benefits you get from saving a site as a template:
As you begin to create custom sites in SharePoint, you'll discover even more benefits to turning your site into a solution that can be made portable across the organization. The basic steps to working with site templates are as follows:
After you add a site template to the solutions gallery and the template is activated, the next time that you create a site or subsite, the template is available for selection in the Custom tab of the Template Selection section on the New SharePoint Site page.
Navigate to the top-level site of your site collection.
Click Settings, and then click Site Settings.
In the Site Actions section, click Save site as a template.
Specify a name to use for the template file in the File name box.
Specify a name and description for the template in the Template name and Template description boxes.
To include the content of the site in the site template, select the Include Content box.
Note
Including the content of the site can increase the size of the template significantly. The default size limit for a site template is 50 MB but might be less in your organization. You can always exclude the content, and then copy what you need later into the new site. Or, you can increase the size limit. For example, to increase the limit to the maximum allowed, use the following Stsadm command syntax. > stsadm -o setproperty -pn max-template-document-size -pv 524288000
Click OK to save the template.
If all of the components on the site are valid, the template is created, and you see a message that states "Operation Completed Successfully."
Do one of the following:
Training
Module
Explore Power Pages templates - Training
Learn about Power Pages templates, pre-configured solutions that are available to help accelerate deployment.