Skip to main content

How to roll up content from SharePoint sites using Highlighted Content Web Part

Content roll-up and aggregation from multiple sites has always been a big Matzo Ball in SharePoint. If you wanted to achieve some content aggregation in old (classic) SharePoint, you had to rely on either a Content Query or Content Search Web Part. And while they allowed to aggregate data in one place, user experience was terrible. And oh yeah, did I mention that you had to have Ph.D. in SharePoint to set them up?


Example of Content Query Web Part (CQWP) setup screen


Example of Content Search Web Part (CSWP) setup screen

Thanks to Microsoft’s ongoing modernization of SharePoint, we now have a great way to roll up content from multiple sources. The web part that allows us to do this is called Highlighted Content Web Part (HCWP). With this post, I would like to explain what the HCWP web part is all about and how to use it to roll up content across your sites.

Step 1: Add Highlighted Content Web Part to the modern page

  1. Edit the pageNewsvsannouncementswebpart4
  2. Hit the “+” sign, then choose Highlighted ContentRollupcontenthcwp3

Step 2: Configure HCWP Web Part

  1. Click the pencil icon to edit its propertiesRollupcontenthcwp4
  2. First, you can configure the sources (which sites you will collect info from). In case you use Hub Sites, you can aggregate info from the whole Hub!Rollupcontenthcwp5
  3. You then can specify the type of content being aggregated. Most of the time it will probably be documents, but you can also choose other types as wellRollupcontenthcwp6
  4. Next, you can set your filters and the sort order (both optional). you can get pretty advanced, with filtering by managed properties as well (as depicted in the example below)Rollupcontenthcwp7

Use Cases for using Highlighted Content Web Part (HCWP) web part

  1. Display recently modified documents on a site or the whole HubRollupcontenthcwp8Rollupcontenthcwp9
  2. Roll up of documents based on a specific piece of metadata (managed property)Rollupcontenthcwp7
  3. Roll up of Pages, based on metadata for a company Wiki

You may also like

What is Keyword Query Language and how to use it in SharePoint Online

October 12th, 2021

You may also like

How to use commands in a search bar in Teams

May 13th, 2021

You may also like

4 places where you can enable Audience Targeting feature in SharePoint

March 4th, 2021

Need SharePoint Help?

Hourly consulting, training and configuration services are available

Learn More