Forum Discussion
SharePoint news post still appears even after the news page has been deleted
- Sep 14, 2022
brewsa CaptainReboot You can also use SharePoint JSON formatting to demote news pages in SharePoint.
Check the column formatting sample for same: Demote News to Site Page
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
CaptainReboot news pages should not be deleted as this doesn't remove them from the news web part. This is particularly noticeable when you have a news web part on a hub site and are publishing news from there and from associated sites. Instead of deleting news pages you should demote them from a Promoted State of 2 (published news page) to a Promoted State of 0 (normal page). That will remove them from the news web part. If you really need to delete the page you can now do so.
Normally the Promoted State column in the site pages library is read-only. But you can overcome this on a site by editing the Promoting State column and changing the default value from 0 to 2 then saving it. Then do it again and change the default value back to 0 and Save. If you now look at the site pages library in grid view you will see that you can change Promoted State.
So restore the deleted page and do the above process to make the Promoted State column editable. Then demote the news story and you will find it will have been removed from the news web part.
Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)
- brewsaSep 13, 2022Brass ContributorIf this worked in April 2022, I'm afraid Microsoft have closed that loophole now too. They really don't want us messing with this field - which remains read-only. But still we appear to have no "Demote" option available as standard... so still we scratch our heads over what to do about mistakenly promoted pages...
- ganeshsanapSep 14, 2022MVP
brewsa CaptainReboot You can also use SharePoint JSON formatting to demote news pages in SharePoint.
Check the column formatting sample for same: Demote News to Site Page
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- Sood_UkFeb 27, 2023Copper Contributor
genius! They've removed the Edit option on the Promoted State Column on our Tenant, your json solution gets around the problem for demoting pages - thank you for sharing!
- JJ_00Jul 06, 2023Copper ContributorHi RobElliot,
I just would like to warn you and all before doing that (I don't think that anyone can as Microsoft blocked that option recently). This workaround might corrupt entire site, templates specifically, as their promoted scores won't be working properly after you publish them. You will need to go to page lists, unpublish, change promoted score, publish again... it's time-consuming and in bigger environments might be hard to achieve if you publish a lot.
Hence, there is no way to unpublish such news.