Replies: 1 comment
-
|
Hi - I have not tried to just use the "TargetWeb" - instead I explicitly create connections (as we have different service account principals for both source and target) and pass those into the "ConvertTo-PnPPage" and it is working. Some things to note - by default the converted file will be placed into "/SitePages", so - maybe plan on using a subfolder for "/Pages" within that - if you then attempt move those files after conversion to "/Pages" they won't render. However - when performing cross-site transformations, I am finding that "ConvertTo-PnPPage" is not "respecting" the flags to stop URL re-writing (it works fine for "in-place" transformations of non-Publishing site pages) - which is a problem with our project as we have our own post-processing URL remediation logic (and the URL mapping file processing just isn't working for our staged, multi-step migration). Am unsure if this is a bug (or limitation) in PnP.PowerShell versus the pnpcore SDK that underpins things. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to move sites to SPO. Our pages are split between Site Pages and Pages. Sites Pages convert just fine. The Pages, specifically Publishing Pages, is where we are running into issues.
The base ConvertTo-PnPPage doesnt work. I have tried to get the -PublishingPage flag to work. I ahve tried many variations to get this to work. This was the last.
ConvertTo-PnPPage -Identity $page.FieldValues["ID"] -PublishingPage -Overwrite -TargetWebUrl $newsiteCan someone provide an example of how this works? I cannot, for the life of me, get this to work and it would save SO MUCH TIME.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions