Highlighted Content web part - bug with filter on pages vs. news?

Brass Contributor

I just noticed a not expected behavior in the highlighted content web part in a communication website.

 

In the web part settings I have following configuration:

 

AndrSchiemann_0-1633514942821.png

 

The expected behavior from my side is, that only pages and not news are shown because there is a additional type called "news" available in the dropdown menu "Type".

 

However, the web part shows published content pages AND news pages. So for me its a bug, isnt it?

5 Replies

Hi @AndréS - technically News items are still pages.  

While you can filter to just show News, excluding the other type of pages,  the Pages option shows anything that's in the Site Pages library.  I've tested in my tenant and confirm behaviour is the same. This is probably the design rather than it being a bug.

 

You might find you need to add a filter using managed properties so that you can exclude your news pages. 

Non-news pages have a Promoted State of 0, news are 2

In the web part settings, choose a Type -  Pages, then go down to Filter and change to Managed property.  Search to find PromotedState, should turn up an option of PromotedStateOWSNMBR. Select this, leave filter set to Equals and then put 0 (zero) in the last field. The Highlighted content web part should then just show your non-news pages.

Screenshot of filter

JennyBruce_0-1634531389339.png

 

 

Thanks @Jenny Bruce for your explanation regarding the property PromotedState. I was aware about this property. The downside of using this property is, that actually there is no difference between a draft page or a published page - both have the value "0".

 

I didn't found a solution to filter for published pages only in the highlighted content webpart. :(

 

However I am still believing that there is a bug in the filter value of this webpart. May I have to challenge it with Microsoft Support. 

 

Best Regards,

André

@AndréS the PromotedState values are 0 for a normal page, 1 for a draft and 2 for a published news page.

 

Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

Hi @AndréS - further on @RobElliott's note about the three values for promoted state. Don't forget that only site 'members' (i.e. people with editing permissions) can see draft pages. 

If you're preparing something for your read only audience they won't see draft pages even if they are showing up in the web part for you (and site members).  It will take a bit of educating your site members not to be alarmed about seeing draft pages  in the web part, but once you get over that hurdle you should be okay.

 

Meanwhile the reported behavior is gone - the filter type "Pages" displays pages only. :)