Thursday, July 1, 2021

SharePoint - Add Title Area to a modern page where it's missing

 I've found pages that for one reason or another are missing the Title Area with the banner.  In order to get that back, I just run the following on it (replacing the ID with the ID of the page you're trying to get):


$SiteURL = "https://vivity.sharepoint.com/sites/Test"

$ID = 12

Connect-PnPOnline $SiteURL -Credential (Get-Credential)

Get-PnPListItem -List SitePages

Set-PnPListItem -List SitePages -Identity $ID -Values @{"PageLayoutType"="Article"}


No comments: