Explore the Experience in SharePoint 2013

Thursday, December 4, 2014

How To: Save publishing site as a template in SharePoint 2010 and 2013

No comments


Hi Guys,

Thanks for visiting my blog.

Many of you must have noticed that the “Save site as template menu” under “Look and Feel” site settings category is missing  for publishing site.

Solution :

One of the old and well known workarounds for this was to directly navigate to _layouts/savetmpl.aspxapplication page and save the site Template. This workaround however does not work as expected in SharePoint 2013 sites.


Regarding to fix  it we need to enable SaveSiteAsTemplateEnabled to true 

for more information "http://www.learningsharepoint.com/2013/05/03/missing-save-site-as-template-for-publishing-sites-in-sharepoint-2013/"

 “Save site as template” menu option was removed from publishing sites?

According to my vast experience with many customer that are using publishing sites, a lot of them tried to use the save as template option (some using code, some using a feature like the one below) and we all came to the same conclusion:
Since publishing sites has pages in them and layouts that are all connected to a content type that is configured at the top level site of the site collection, and because these content types are not saved and moved within the site template STP file – this makes the STP file not self-describing as it should.
This means that if you save a publishing site as template and use it in the same site collection, providing all site content types it uses were not changed, it will work OK.
The problem is when you try to move it to a different site collection, or when you changed or deleted some content types in your current site collection – this will result in an un expected behaviour (that is from my experience mend-able with some work).


Note : Other than Publishing Site we can find the " Save  Site as Template " available under look and feel  in Site Settings .

No comments :

Post a Comment