Is there a way to create Site templates from a subsite?I do know that we cannot "Save Site as template" when Publishing feature is enabled. Also, getting directly to "/_layouts/savetmpl.aspx is not a supported methodology. Can anyone let me know how we can create templates from a subsite? We would be using a lot of content types which we would use for many sites that are going to be created. So we wanted to save site as template and create sites as and when we need and not redo all them.

Help is appreciated.

Vj

有帮助吗?

解决方案

Save as template does not work for publishing enabled sites.

edit: Here is an official MS-Not-Supported statement: https://blogs.technet.microsoft.com/stefan_gossner/2007/09/19/save-site-as-template-option-and-the-publishing-feature/

[...]is: saving publishing enabled sites as a template is not supported and it does not work. You cannot use this option to create new sites. Instead you should create site definitions (..\web server extensions\12\template\SiteTemplates) and provision the new site based on such a site definition. [...]

其他提示

can you try to enable the property 'SaveSiteAsTemplateEnabled' with powershell:

$web = Get-SPWeb http://contoso/site/subsite1/subsite2/
$web.AllProperties['SaveSiteAsTemplateEnabled'] = 'true'
$web.Update()

and then access to /_layouts/savetmpl.aspx

许可以下: CC-BY-SA归因
scroll top