A site template is like a blueprint for the site. SharePoint site templates are prebuilt definitions designed around a particular business need. There are default site templates like Team Site, Project Site, and Communities Site, publishing site etc. but you can also create your own site template based on a site you’ve created and customized.
You can customize a SharePoint site like, add libraries, lists, views, workflows, logos, and other elements that you require for your business, then Save the Site as a template and reuse the site template to create different sites. Custom site templates are often used to deploy solutions in other sites or to provide site consistency within your organization. You can also package the site into a Web Solution Package file (.wsp) and open it in another environment or application such as Visual Studio and further customize it there.
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 also include the contents of the site in the template; for example, the documents stored in the document libraries or data in the lists in SharePoint.
Below are the things which are supported when you Save SharePoint 2013/Online site as a template.
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.
Below are the things which are unsupported when you Save SharePoint 2013/Online site as a template. These things will not come along with the template.
Customized permissions, running workflow instances, list item version history, workflow tasks associated with running workflows, people or group field values, taxonomy field values, publishing sites and pages, and stapled features.
When you create a site template, information about site features and content types is also saved. When you use the site template in a different site collection, those features must be available and activated for the site template to work.
The size of the template should not beyond 50 MB site template limit.
When you Save a list as a template it will save as a .wsp file will store it in the site collection’s Solution Gallery. After it saved it can be used to create subsites within that same site collection. If you want to use the site template to create sites in a different site collection, you can browse to the Solution Gallery and download the solution. You can then upload the solution in a different site to make the site template available there.
The Save Site As Template functionality uses the web template technique behind the scenes. It generates an ONET.xml file and an elements.xml file containing a WebTemplateelement. When a site is saved as a template, SharePoint has to make sure that everything that was available in the original site is also available in a new site that is created by using the site template. To ensure this, SharePoint packages all the features, site columns, content types, property bag values, and much more from the original site into the site template.
They can only be used on sites that don’t have the publishing features enabled. Activating the publishing features on a site will make the Save Site As Template link disappears from the site settings page. But you can access it from URL which is not recommended form Microsoft. This can sometimes cause major issues.
There is no difference between creating a Site template in SharePoint 2013, SharePoint 2016 and SharePoint Online. To create a site template, open your SharePoint 2016/2013 site, click on the gear icon and then click on Site settings like below:
![sharepoint 2013 save site as template](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/sharepoint-2016-save-site-as-template.png)
In the Site Settings page click on “Save site as template” which is under the Site Actions section.
![Save Site As Template SharePoint 2013](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/sharepoint-2016-save-site-as-template-1.png)
Then it will open the Save as Template page, Give a file name, template name, description as well as if you want to include the content, check the checkbox “include content” as shown in the fig below:
![Save site as template in SharePoint 2013](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/save-site-as-template-sharepoint-2016.png)
Once the operation completed successfully, it will display a successful message. The template will be saved in the solution gallery of the site collection.
![save site as template sharepoint online](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/save-site-as-template-sharepoint-2016-1.png)
Now if you will visit the solution gallery you can see the template must be saved and activated there. It will display like below: (To visit the solution gallery from the site settings page click on Solutions which is under Web Designer Galleries)
![how to Save Site As Template in SharePoint 2013/2016](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/sharepoint-2016-activate-custom-template.png)
Once we save the SharePoint site as a template, we can create a site or subsite using the custom SharePoint template.
Now if you will go to the Site Contents page of SharePoint 2013/2016/Online site and try to create a new subsite you can see the template appears under the Custom tab.
![steps to Save Site As Template in SharePoint 2016](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/sharepoint-2016-site-template-create-new-site.png)
Once you create the site using the template, the new site will be created based on the same template. As you can see in the example, the new site has the logo which was there in the template as well as one Employee list is also there which was there in the existing template. The new site looks like below:
![save site as template sharepoint 2016](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/sharepoint-2016-site-template-create-new-site-1.png)
As we have discussed the site template will be available to that SharePoint site collection only. If you will check in any other site collection then the template will not available. Here it is how looks in another site collection.
![Save Site As Template in SharePoint 2016](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/sharepoint-2016-site-template-in-different-site-collection.png)
So first go to the source site collection and then from site settings page click on Solutions to open the Solution Gallery. There click on the solution file which will ask you to Save the file in local drive. Save the file.
Now come back to the SharePoint site collection where you want to upload the solution, your destination site collection. Click on the gear icon and then Site Settings link. In the Site Settings page click on Solutions which is under “Web Designer Galleries“.
In the Solution Gallery, click on the Upload Solution button to upload the solution which we have saved in our local drive.
![Save site as template in SharePoint 2013](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/upload-site-template-solution-sharepoint-2016.png)
![save site as template sharepoint online](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/upload-site-template-sharepoint-2016.png)
Then browse the file and click on OK. It will add the solution and it will ask you to activate the solution. Click on the Activate button to activate the solution like below:
![sharepoint 2013 save site as template](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/Activate-site-template-sharepoint-2016.png)
Once it is activated in the Solution Gallery like below the template will be available in the site collection to use.
![save site as template sharepoint online](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/sharepoint-2016-site-template-in-different-site-collection-activated.png)
Now go to Site Contents page and try to create a new subsite, in the templates you can see the site template will appear like below:
![Save Site As Template in SharePoint 2013/2016/Online](https://www.enjoysharepoint.com/wp-content/uploads/2018/08/sharepoint-2016-site-template-in-different-site-collection-activated-1.png)
We can also directly access the SharePoint 2013 save site template url. Suppose you are trying to Save site as a template in SharePoint 2013/2016/Online, then you will not see the “Save site as template” option in SharePoint site settings page. But you can directly access SharePoint 2013 save site as template url:
<You SharePoint Site URL>/_layouts/savetmpl.aspx
or
<You SharePoint Site URL>/_layouts/15/savetmpl.aspx
or
<You SharePoint Site URL>/_layouts/15/savetmpl.aspx
You may like following SharePoint customization tutorials:
- How to retrieve all site templates available in SharePoint Online using PowerShell?
- Office 365 SharePoint Online Overview of a community site template
- How to check which site template used by SharePoint online Office 365 site?
- Retrieve all site templates using PowerShell and retrieve site templates using SharePoint 2016 server object model
- SharePoint 2013 Missing Blank Site Template
- Unable to see all site templates category in Template Selection while creating a subsite in SharePoint 2013
- SharePoint 2013 Site Template ID List for PowerShell
- Activate Group Work Site Template in SharePoint 2013
- How to check which site template used in SharePoint Online Site using JSOM (JavaScript Object Model)?
- Add multiple Office templates as a content type to a document library in SharePoint Online/2013/2016
No comments:
Post a Comment