Filtered News on Modern SharePoint Sites
Recently I had a client looking to update their current SharePoint Intranet to the new Modern SharePoint sites. Using a Communications site, a new Intranet was created to provide a visually appealing interface, coupled with a streamlined communications vehicle for employees to stay updated on news, events and projects throughout the organization.
Given that the modern sites and the provided web parts are relatively new, additional functionality is being released over time. In its current state, there is no way to filter or categorize the content which appears in the News web part. Unlike the Events web part, which has a built-in Category filter, the News web part is an all-or-nothing dump of promoted pages.
There are many benefits to filtering items which appear in the News web part. If you’re reading this article, you likely already have use cases of your own. For my client, the Intranet included a series of pages for each of their many office locations. The employees in each office are only interested in news that pertains to either the entire organization, or their specific site. Sifting through a collection of news posts related to other offices would be time-consuming and inefficient.
This is a fairly simple workaround, it requires no code and uses all out of the box components. You will need the following items in order to implement this solution: