In this post we will discuss how we can save site as template in SharePoint 2016. A site template is like a blueprint for 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 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.
– Configure On Premise environment for Apps in SharePoint 2016
– SharePoint 2016 List View Auto Indexing Automatic Index Management
– SharePoint Server 2016 Beta 2 and SharePoint 2016 RC Single Server Farm Technical Preview Deployment Guide Part-4
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.
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.
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 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 disappear from the site settings page. But you can access it from url which is not recommended form Microsoft. This can sometime cause major issues.
Steps to create Site Template:
There is no difference between creating a Site template in SharePoint 2013 and SharePoint 2016. To create a site template, open your SharePoint 2016 site, click on the gear icon and then click on Site settings like below:
In the Site Settings page click on “Save site as template” which is under Site Actions section.
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 check box “include content” as shown in the fig below:
Once the operation completed successfully, it will display a successful message. The template will be saved in the solution gallery of the site collection.
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 to 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 2016Now if you will go to the Site Contents page and try to create a new sub site you can see the template appears under Custom tab.
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 in SharePoint 2016Upload Site Template to Other Site Collection:
As we have discussed the site template will be available to that 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.
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. 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.
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:
Once it is activated in the Solution Gallery like below the template will be available in the site collection to use.
save list as template sharepoint onlineNow go to Site Contents page and try to create a new sub site, in the templates you can see the site template will appear like below:
Hope this will be helpful.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.