Forum Discussion

Davy Loose's avatar
Davy Loose
Copper Contributor
Aug 24, 2018
Solved

Multiple news web parts with a filter on a homepage

Hi all,

Currently we are in the middle of creating a new intranet. One of the functionalities is the ability to show news in 3 columns depending on the type of news. Therefor we created a site column 'News category' with the following choices:

  • Breaking
  • Daily
  • Other

This is working perfectly and we can tag the news pages using the new feature Page Details. Now we want to show the correct news in the correct column on the homepage. So we add the news web part in 3 different column and select the following settings:

 

  • Source: this site
  • Layout: list
  • Amount of news: 4
  • Filter
    • Page properties
    • News category is equal too Breaking (or Daily or Other, depending on which news web part we are configuring)

This seems to work perfectly after configuring the web parts and publishing the page. The problem exists when I refresh the page or somebody else visits the page. The filters are totally mixed up. Some news that is tagged Breaking is now showing in the Daily news web part. Or some news page is being shown in Breaking, Daily and Other. 
When I check each web part setting the filters are still correctly configurated but it seems that SharePoint forget to apply the filter after publishing…

I've also tried the same functionality using the Highlighted Content web part and there it works perfectly. But then my users have to deal with the fact that on each picture the SharePoint page icon is being shown. We prefer to use the news web part for the cleaner look.

Some other details:

  • The site is a communication site
  • The site is promoted to a Hub site
  • 3 Team sites are currently connected to this hub site
  • Carol DeMuth's avatar
    Carol DeMuth
    Oct 11, 2018

    I had a support ticket that is closed now.  They admitted it is a bug and have elevated it to the developers.  I found that I could use the filter on a modern team site, but not on a communications site.  We had our intranet launch so had to do so without filtering out our news. 

15 Replies

  • Paul Bullock's avatar
    Paul Bullock
    Copper Contributor

    I think this issue has been fixed now. When loading the news this morning the filters appear to work correctly on my targeted release tenant.

     

    Paul

  • Paul Bullock's avatar
    Paul Bullock
    Copper Contributor

    Hi

     

    I have found this as well, and raised with MS Support, its easily re-producible. If you refresh the page, the data loads differently some of the filters are respected.

     

    I have no answer, I am seeing this on multiple tenants.

     

    Paul

    • Carol DeMuth's avatar
      Carol DeMuth
      Iron Contributor

      I had a support ticket that is closed now.  They admitted it is a bug and have elevated it to the developers.  I found that I could use the filter on a modern team site, but not on a communications site.  We had our intranet launch so had to do so without filtering out our news. 

  • Peter Werner's avatar
    Peter Werner
    Copper Contributor

    I am running into the same problem. I noticed that the filter function works initially and stops working after a navigating away and then back to the page with the news web part. The "show all" link is also not visible initially (when the filter is working), but appears after navigating back to the page (filter not working).

    So, is this a bug or a feature?

  • Carol DeMuth's avatar
    Carol DeMuth
    Iron Contributor

    I had the same requirement - needed featured news and additional news separated.  I created a site column called featured, then had to go through the whole process of making the column a managed property.  I had to re-index the document library and wait for a crawl before it would work.  It appears to be working now, but I lost some of the functionality of the News web part.  Since I'm the only one here on first release, I can't push out the settings that were recently announced.  I also lost the See all link you get with the News web part, so had to create a link to go to the See all page so I could use the email digest feature.  So it may be you just need to make sure your column is a managed property.  Unfortunately you have to wait for the crawl to run before items show up in the correct place.

  • That feature is fairly new, so It might be bugged. If you can reproduce it every time I would put in a support ticket and get it looked at cause it sounds like something you won't be able to fix.

    As for the Highlighted content view, if you use the Document Type, or Type as News instead of document, it should render the photos just like news articles, however it doesn't do it exactly the same but something you could try.

    What I've done in the past that's worked well before page properties came out was have comm sites for each type, then just use the selected site option to display the news from those sites only, which works well and I've left it that way for now, so that's an alternative solution as well.

Resources