Forum Discussion
Deleted
Apr 10, 2018Change News Page to Site Page
Hi All, I'm looking for a method of changing a News Page to a Site Page. These pages were created prior to the hub sites being rolled out, now they are showing up in the News sections of all pag...
- DeletedApr 10, 2018
Ok, I finally got this to work without Using flow. Do the following.
1.Go to Site Pages on your Site.
2.Change your view to "All Items"
3.Now Click the + to add a column to view, and select Show/Hide Columns
4.Check Promoted State column and click "Apply" at the top.
5.Now Click the view drop down and Save view as
6.Name it "All Items and State"
7.Now you should be able to click "Quick Edit" and then Promoted State column will be exposed to change the value. Change the page you no longer want to be news from 2 to 0 and Click exit and your page can now be a Site page again.
Kevin Belanger
Aug 15, 2024Copper Contributor
You can use PnP PowerShell to do this by changing the PromotedState field from 2 to 0
#change to your site address
$SiteURL = "https://crescent.sharepoint.com/sites/Intranet"
#Connect to Site
Connect-PnPOnline $SiteURL -Interactive # to use web creds, replace with 'Connect-PnPOnline -Url $SiteURL -UseWebLogin'
#Get all Site pages - along with their IDs
Get-PnPListItem -List "SitePages"
#Demote News page with ID "4" to Site Page
Set-PnPListItem -List "SitePages" -Identity 4 -Values @{"PromotedState"="0"}
For reference, see https://www.sharepointdiary.com/2020/03/promote-site-page-to-news-page-in-sharepoint-online.html
#change to your site address
$SiteURL = "https://crescent.sharepoint.com/sites/Intranet"
#Connect to Site
Connect-PnPOnline $SiteURL -Interactive # to use web creds, replace with 'Connect-PnPOnline -Url $SiteURL -UseWebLogin'
#Get all Site pages - along with their IDs
Get-PnPListItem -List "SitePages"
#Demote News page with ID "4" to Site Page
Set-PnPListItem -List "SitePages" -Identity 4 -Values @{"PromotedState"="0"}
For reference, see https://www.sharepointdiary.com/2020/03/promote-site-page-to-news-page-in-sharepoint-online.html