de-DEen-GB
 
rss

Granikos Technology Blog

Save Site as template while Publishing Feature is activated

On Oktober 15, 2014
506 Views

SharePoint Server 2013Problem

Saving a Site Template with activated Publishing Feature is not possible in SharePoint 2013 (menu link missing).

When using the direct browser link (which worked perfect in SharePoint 2010) http://YourSharePointSite/_layouts/15/savetmpl.aspx you get the error The "Save site as template" action is not supported on this site.

Save site as template error

 

Solution 

Modify the SaveSiteAsTemplateEnabled property in your SPWeb object via PowerShell.

# Store your Site in a variable:
$SiteToModify = Get-SPWeb http://YourSharePointSite

# Display the current value of the property:
$SiteToModify.AllProperties["SaveSiteAsTemplateEnabled"]

# Set the property to true:
$SiteToModify.AllProperties["SaveSiteAsTemplateEnabled"] = "true"
$SiteToModify.Update()

 

Screenshot PowerShell

 

When now trying the savetmpl.aspx link again, you can save your template:
http://YourSharePointSite/_layouts/15/savetmpl.aspx

Save as Site Template working

 

 

 



Kommentare sind geschlossen

Anzeigen 0 Kommentar