ConvertTo-PnPPage - Set Modern page header #1962
Unanswered
azzusheikh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to convert SharePoint Classic site Publishing page to Modern Site page using the below command.
ConvertTo-PnPPage -PublishingPage -Identity $FileName -Overwrite -CopyPageMetadata -TargetWebUrl $TargetURL
I need to set the "PublishingImage" of classic site page as "Header Image" in Modern site page. But the above command is copying the publishing image as "Image Webpart" at the bottom of the Modern site page.
Any help would be appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions