Forum Discussion
Change News Page to Site Page
- 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.
Hello,
Have there been any recent developments in this? I setup my page as indicated in the solution here but the column is now greyed out and says it is a read-only field.
Thank you,
Nicole
- ganeshsanapSep 16, 2022MVP
npajak22 Try solution given in my above response using SharePoint JSON formatting. Let us know if it works for you.
Please consider giving a Like if my post helped you in any way.
- c00p82Sep 23, 2022Copper Contributor
ganeshsanap you are amazing for sharing this - thank you so much
Start Here:
- Site Contents
- Site Pages
- Change View Option to All Pages
Turn on the Promoted State Column:
- Add this column by selecting + sign next to the last column displayed in the header
- Then select Show/hide columns
- Scroll down to Promoted State and check the box and click Apply
Add JSON:
- Go into edit in grid view
- Click promoted state column arrow - column settings - format this column
- Apply formatting to - select Promoted State
- Delete code that is there and paste this code found in link below into it
- Save - refresh page
- Click ellipsis - Demote (Change to 0:Page)
Finish It:
- THEN GO TO THE PAGE AND REPUBLISH IT TO TAKE AFFECT
https://github.com/pnp/List-Formatting/tree/master/column-samples/promotedstate-demote-news
- Mel_C13Nov 08, 2023Brass ContributorI have been using this JSON for months now and it was working great. But now, even though the promoted state says 0 and we have unpublished the page, the pages are still showing up in the news webpart. It seems that the only way for us to get them to go away is to delete them.
Does anyone have any suggestions?
- brewsaSep 15, 2022Brass ContributorThe column formatting solution above from @thechriskent (posted above by ganeshsanap) worked for me in a few seconds.