Filtering News with multiple Content Types

Copper Contributor

Hi all, hoping there is something that I am missing here, but it appears that the News web part can only be set to filter based on properties shared with the current page. We use multiple site page Content Types with different properties to control our navigation, however it appears that I can't filter news based on a column, unless the page I'm currently on also contains that column.

 

Anybody else experienced this issue, or know of a workaround (aside from adding the columns I want to filter on to the content type of the page hosting the web part)?

4 Replies

@Evan Bentley As far as I know, in the news web part, you can only show pages of the type "News". It does not support any other Content Types. If you need to Show pages based on different types of content types I recommend that you use the web part called "Highlighted Content" instead.

 

Regards, Magnus

@MagnusGoksoyrOLDProfile  Hey Magnus, not quite - a News item is just a page with the Site Page content type (or a child content type) with the 'Promoted State' field set to 2 (or 1 in draft I think)

 

I considered using the highlighted content web part but I would ideally like to keep to the news/promote functionality for ease of use

@Evan Bentley Yes i am aware of that but since the only Page Property you can filter on, by default, is Title and like You say, only News Pages. You cannot show other Content Types in this web part.

 

However a (not so pretty but functional) workaround and/or an optional solution for You /if You prefer to use the News Web Part) is to always create pages from the News web part and then to Filter on different types of News (in one or more News Web parts), you can create additional Site Columns in the Site Pages Library and modify the Filter settings on the News Web Part. 

 

1. Create a new Site Column that You want to be able to filter on

Create a new Site Column that You want to be able to filter onCreate a new Site Column that You want to be able to filter on

 

 

2. Create a News Page, edit the Properties of it and select a value from the Site Column you created

Edit the Properties on the News Page and select a value from the Site Column you createdEdit the Properties on the News Page and select a value from the Site Column you created

 

3. Edit the News web part so that in only shows the chosen category

Edit the News web part so that in only shows the chosen categoryEdit the News web part so that in only shows the chosen category

 

4. The Web part will now only show News Pages based on the filter You have chosen

The Web part will now only show News Pages based on the filter You have chosenThe Web part will now only show News Pages based on the filter You have chosen

 

Otherwise the solution is to use the "Highlighted Content".

Best regards, Magnus

 

Yes, thought I was going mad until I found your post. Had to add the site column to the parent content type as optional and then it was available.