Forum Discussion
Lee-Martin
Mar 16, 2023Copper Contributor
Download a template - modern sites
Can anybody please share a how to on downloading my SharePoint site as a template? Everytime I think I've got something useful, it turns out to be a classic template The Microsoft site isn't...
Anonymous
Mar 16, 2023
The functionality of saving a site as a template is not supported in SharePoint Online (modern sites). Please accept my sincere apologies about that. See https://learn.microsoft.com/en-us/sharepoint/dev/general-development/save-download-and-upload-a-sharepoint-site-as-a-template#save-a-site-as-a-template-to-the-solutions-gallery
However, I have been able to get how you can save the modern site (modern team site and communication site) as the site template, although I have not had the chance to test. You can by visiting /_layouts/savetmpl.aspx page.
When you access /_layouts/savetmpl.aspx , access denied may occur. It occurs because the denyaddandcustomizepages of this site is true. https://technet.microsoft.com/en-us/library/fp161394.aspx determines whether the Add And Customize Pages right is denied on the site collection. By default, the right is denied on the modern site collection.
We need to https://technet.microsoft.com/en-us/library/fp161372.aspx and set denyaddandcustomizepages of the site to false.
$adminUPN="<admin>@<tenant>.onmicrosoft.com"
$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
Connect-SPOService -Url https://<tenant>-admin.sharepoint.com -Credential $userCredential
set-sposite https://<tenant>.sharepoint.com/sites/<communication/team> -denyaddandcustomizepages $false
You can reference the article below for further information.
https://sharepoint.stackexchange.com/questions/255756/save-site-as-a-template-for-modern-team-and-communication-site-in-sharepoint-onl
If I have answered your question, please mark your post as Solved If you like my response, please give it a Like Appreciate your Kudos! Proud to contribute! 🙂 |
Lee-Martin
Mar 16, 2023Copper Contributor
Deleted
I thought you could do this with scripting?
How would I move this site to another location?
I thought you could do this with scripting?
How would I move this site to another location?
- AnonymousMar 16, 2023
Not anyone that I can find online.
To move site to another location, See https://sharepointmaven.com/how-to-move-sites-in-sharepoint/I am also adding the below
https://support.microsoft.com/en-us/office/sharepoint-classic-and-modern-experiences-5725c103-505d-4a6e-9350-300d3ec7d73f
If I have answered your question, please mark your post as Solved
If you like my response, please give it a Like
Appreciate your Kudos! Proud to contribute! 🙂
- Lee-MartinMar 17, 2023Copper Contributor@Get-PnPSiteTemplate
This is for classic sites. "To move site to another location, See How to move sites in SharePoint | SharePoint Maven"
I find it completely impossible that Microsoft has not created a way to move a site from a development environment to a production environment. There simply must be a way to do this.
I have found commands like this which imply that it is possible (Get-PnPSiteTemplate), so there simply must be a way.- AnonymousMar 22, 2023
I have screenshotted the part again in which it is mentioned that it is not supported:
Here is the article for your reference: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/save-download-and-upload-a-sharepoint-site-as-a-template#save-a-site-as-a-template-to-the-solutions-gallery
I am sorry that there is no solution as far as I can see it.
If I have answered your question, please mark your post as Solved
If you like my response, please give it a Like
Appreciate your Kudos! Proud to contribute! 🙂