Forum Discussion
Thao Pham-Aaltonen
Sep 19, 2018Brass Contributor
Copy or Move Site Page from one site to another
Hello, I've been searching to see if this is possible but it appears with the modern experience, you can only copy a site page to the same Site Pages library in the same site. If I switch my view to...
NiclasDahl
Sep 04, 2019Brass Contributor
Thao Pham-Aaltonen I've been struggling with this as well and managed to create a workaround with Flow where you create a copy of the page in the new site collection.
Set up the flow as below and then trigger it by checking out and checking the sites.
It has a few drawbacks though:
1. All the pages assets are sourced to the old sites assets library, I haven't found a way to move them without having to relink every single news item. I tried the move action, but in the SP UI you cannot select the site assets library as a target destination. So you cannot delete the old site because the all assets link will be broken on the pages.
2. The one owning the flow will be the creator of all the news created in this manner.
3. Creation date will be changed to the current time, which will screw up the ordering of news for example. But if you don't have a massive amount news pages to move you can keep the chronological order of them if you check out each site separately, starting with the oldest. And then you can just bulk move the rest.
- FredDeligneSep 22, 2021Copper Contributor
- BrenGFeb 11, 2020Copper Contributor
Thanks! This worked great on one of our sites. However, On our main site it did not work. I have Full Control and Admin permissions. I get an access denied error. Do you know if there is anything specific that might be causing this error. Is there anything I need to enable in Admin or Site Settings?
Thanks,
Bren
- NiclasDahlFeb 12, 2020Brass Contributor
It could be that you have to allow customization on the the destination site, you can turn that on with powershell:
Connect-SPOService -Url "https://YOURDOMAIN-admin.sharepoint.com" -Credential $userCredential
set-sposite "https://YOURDOMAIN.sharepoint.com/sites/SITENAME" -denyaddandcustomizepages $false
If that doesn't work there is another way to move the sites and other resources, but it only works if you use Internet Explorer and it requires page customization to be allowed.
This is what you do:
1. open IE and navigate to the site where you have the pages/resources you want to move
2. go the the/a document library
3. click on the view options and pick "view in file explorer" (this is only available in the doc libraries, not list or general site content)
4. This will will open the document folder in your local explorer and then you can browse back to the sitepages folder and copy the content there.
5. Repeat 1-4 on the destination site, but instead of copying you paste the pages/resources there. This works for all the site content (list, assets, lirbraries etc.etc.)
The problem with pages sourcing their images and other content to the old site will still persist though....
- Dean ZimmermannApr 09, 2020Copper Contributor
NiclasDahl , I was looking for solutions to move site pages and was already aware of your technique and have used it before. It seems, however, that it no longer works for moving SharePoint site pages when the target is the new hub site and related site pages. I'm now getting a cannot write and it seems the documents won't copy or check in on the target side. Just wanted to post this here because others may try this and run into the same issue. I sure wish we could still do this because I used to just edit the ASPX file and adjust the image URLs to point to the new siteassets folder and it would be successfully moved.
- Thao Pham-AaltonenSep 06, 2019Brass Contributor
NiclasDahl Thanks, Niclas, I'm going to try this out when I get a chance.