How to Promote a Site Page to News Post in SharePoint Online?
Requirement: Convert Site Page into News post in SharePoint Online.
How to convert a Site Page into News Post in SharePoint Online?
In modern SharePoint Online sites, any existing site page can be converted into the News page so that it appears in News web parts. To promote a site page to a News page, do the following:
- Navigate to the site page >> Click on the “Promote” button on the toolbar.
- Click on the “Post as News on this site” button in the tool pane.
It’s pretty easy to promote a regular site page, isn’t it? Once promoted or demoted, You have to republish the page for the search engine to re-index! Otherwise, You may not find them under places like News hub.
SharePoint Online: Demote a News Post Into Site Page
How about the reverse: Demoting the news page back to the site page to remove it from the news pages? As there is no interface to do this, PnP PowerShell can get this done. Setting the “PromotedState” field to “0” demotes the news page.
$SiteURL = "https://crescent.sharepoint.com/sites/Intranet"
#Connect to Site
Connect-PnPOnline $SiteURL -Interactive
#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"}
As a side note, promoted news posts have the value of “2” for the PromotedState field.
Is there Powers Shell script to create folders and sub folders from CSV in a document library
Here you go: SharePoint Online: PowerShell to Bulk Create Folders from a CSV File
This was a phenomenal post, thank you so much. I look forward to learning more along your journey!
Thank you, this is exactly what i was looking for. You made my day!!