Nov 11 2019 06:53 AM
Hello!
I've changed PromotedState value for a couple of pages setting it to 0. I've made this change about 5 days ago.
Today some users have e-mailed me writing that they still can see some news (that now are Site Pages with PromotedState=0) in the News WebPart.
I've checked the Web Part with my account but I can see a single news that is currently with PromotedStat=2. I've also tried with a test account and I confirm I can recreate users experience with other pages visible in WebPart, some are pages with PromotedState 0 and there's also the one with PromotedState set to 2.
How can it be possible? How can I fix without setting custom page properties and apply filters to WebPart?
Thanks!
Nov 11 2019 03:42 PM
Nov 11 2019 08:29 PM
Hi,
You need to Demote the page ,so it will be disappeared from news webpart and search results
I don't have the Powershell handy right now,from my memory you can get the Clientsidepage using
Get-PnPClientSidePage and then demoteAsNewsArticle() which will actually updated the promoted state and first published date.
make sure you save the page using .Save() and .Publish() methods.
That should work!!