Forum Discussion
CheWeigand
Nov 09, 2022Iron Contributor
Change a Modern SharePoint subsite to its own site
I have a modern SharePoint site that I am using as a 'template'. What I am actually doing is copying the content from the parent site to a subsite. What I end up with is a URL looking like this...
- Nov 17, 2022Hi!
You can't move it straight over but you can use PnP provsinioning to get a template of the site, and then you can apply it to a new site.
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/introducing-the-pnp-provisioning-engine
Content must be moved manually thou 🙂
CheWeigand
Nov 17, 2022Iron Contributor
Hi Nicholas,
Thanks!
I have worked with PnP before, but it used a Subsite to my Template site. I will read this thoroughly and see if I can apply it to our needs.
Thanks again!
Che
Thanks!
I have worked with PnP before, but it used a Subsite to my Template site. I will read this thoroughly and see if I can apply it to our needs.
Thanks again!
Che
Dec 19, 2022
How did it go for you guys? 🙂
- CheWeigandDec 19, 2022Iron ContributorJust got back to this project today. The PnPOnline in Powershell is great. Had to figure out that the -configuration param should refer to a json file, Plus I haven't figured out how to get my Hero webpart pictures from the template to the new site. Menu bar is okay but the site icon is lost.
Any help with the images in the hero webpart would be appreciated.
Thanks- Dec 19, 2022Images from Hero webpart should be located in the site assets, so you can move those over
Same for site Icon, I usually move the items first then use the Invoke-sitetemplate command(or if you're using other commands) 🙂- CheWeigandDec 19, 2022Iron ContributorGreat! I'll try that out now.