I want to save a site as a template in sharepoint online, but I am not seeing the option in my team site. How can I save a team site in sharepoint online
Although this option is not supported by Microsoft it still works very well in some specific scenarios. To Save the site as a template you can follow this steps.
- Open the site with SharePoint Designer
- In the ribbon go to Site Options
- Locate the option SaveSiteAsTemplateEnabled and modify the value to true
- Since the site template is disabled in the Publishing sites the option Save Site as Template is not available in the Site Settings you will need to navigate to the page directly: http://yourdomain.sharepoint.com/_layouts/savetmpl.aspx Provide all the details and click OK after a couple of minutes you will have the WSP site template generated
Note: If you have apps downloaded from the store they could prevent you to save the site as a template if you are facing this scenario you will need to uninstall the apps first.
Create a site based on the template will require a similar environment this means that you will need to have the same features installed and activated in the site collection where you want to install the template.
In this article you can find more information about how to activate the features. Save Publishing Site as template
If you have custom page layouts applied to your site site you might loose the access to the pages with them applied after creating the site based on the template.
If you face this issue you can follow this article to fix it Fix publishing pages with custom page layouts created from template
This issue most frequently occurs because
the Community Sites or the SharePoint Server Publishing feature is currently enabled or was previously enabled for the affected site.
Also, in SharePoint Online, if you disabled scripting capabilities for the affected site in Center Admin, this also removes the
Save site as templateoption
For more details check
Well i believe its because you have activated Publishing Feature. Note: Not a recommended approach
You can enable it using SharePoint Designer
- Connect to the site using SharePoint Designer
- Click on Site Options in the Ribbon
- In Parameters Tab set SaveSiteAsTemplateEnabled to true.
If your still not able to see it in your settings.aspx page, directly use the below URL _layouts/savetmpl.aspx
I've recently run into this with a client. After designing needs-based streamlined and branded sites to be saved as templates (both Collaboration and Project), the Save as Template option no longer exists in our SP Online, and CSOM or PNP Provisioning is not an option in this situation.
So I used a workaround, and have not run into any issues using this approach. Keep in mind that by this point I'd already created the sites to be saved as templates. They just haven't been saved as templates per se, but their name contains 'template'.
- Create a site and customize it the way that you wish, and for its title, call it something logical for admins like ‘collab site template for finance sites’ etc.
- Hide it from the regular current, quick, or global navigation.
- When you need to create a new one of your ‘templates’, navigate to what would be the parent site.
- Go to Site Settings / Admin / Content and Structure.
- Then in the tree view, find the templated site and select Copy.
- In the copy dialog you'll be able to define which site it should be copied to (under).
I hope this ad-hoc solution can benefit others.
To Create a SharePoint site collection based on a custom site template in SharePoint Online / Office 365
- Save your site as a template
- Note: Only team sites can be used to create a site template, please see this article for more information:
- Download the site template solution file from Site Settings: Solution Gallery:
- Go to the Classic SharePoint Admin Console: https://[tenent]-admin.sharepoint.com
- Note, this can be done from the modern admin center, but it is more clicks to select a custom template
- Create a new Site Collection
- In the Template Selection area, select "< select template later>"
- Fill in the other required fields and click OK.
- Wait for the site collection to provision
- Browse to the site collection URL, you will be prompted to select a template, then:
- Click Solution Gallery
- Upload your saved site template from set 1
- Click "Activate Solution" and then the dialog will close
- Go back to the root of the site collection (enter the URL or use the back button), The site create wizard will display.
- Under the template selection, click the Custom Tab and then the site template you just uploaded
- Click OK, you will now have a site based on a custom template.