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 🙂
Dec 19, 2022
How did it go for you guys? 🙂
CheWeigand
Dec 19, 2022Iron Contributor
Just 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
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.
- CheWeigandDec 19, 2022Iron ContributorOkay - before invoking the template, I changed the thumbnail and site icon, changed the navigation to horizontal and standard.
Still not seeing the hero pictures, although they are listed in Site Assets. Also the 'Theme' color has to be set by me - not being brought from the Template.
I'll keep looking at this - this is a great step forward - I would like less manual setting up, but it will keep our department SP sites similar (we will still allow a department to edit their site).
Thank for all your input. Much appreciated.
Che