Use this web part to dynamically display content from a document library, a site, a site collection, or all sites. By default, this web part shows your most recent documents. If you don't have any documents or pages on your site, you'll first have to create or upload them.

Add the Highlighted content web part to a page

If you're not in edit mode already, click Edit at the top right of the page.

Hover your mouse above or below an existing web part or under the title region, click
, and then select the Highlighted content web part.

Once the web part is on the page, you can change the title by typing over the default title Most recent documents.

Click the edit button
and select your options.

Choose the content

Once you have added the web part and you see the web part toolbox, do the following:

In the Source dropdown, select where you want to show content from: This site, This site collection, A document library on this site, or All sites.

In the Type dropdown, select the type of content you want to show. You can choose one of the following:

Documents (when you choose Documents, you can also choose a Document type, such as Word, Excel, PowerPoint, and so on). If you want to show more than one type of document, click + Add document type.

Pages

News

Videos

Images

Events

Issues

Tasks

Links

Contacts

All

If you want to show additional content types, click + Add content type.

Filter and sort

Once you have selected your content source and type, you can set filter and sort options to narrow down and organize the content.

In the Filter dropdown, select what you want to filter by, and then enter the specific details for the filter:

Title includes the words Enter the search words for the titles you want to find

Content includes the words Enter the search words for the content you want to find

Recently added Enter the time period since an item was added (such as Today, Yesterday, Earlier this week, and so on).

Recently changed Enter the time period since an item was changed (such as Today, Yesterday, Earlier this week, and so on).

Created by Enter a user name if you choose Selected user. Otherwise, use Current user, which will filter for items created by whoever is viewing the page at the time.

Modified by Enter a user name if you choose Selected user. Otherwise, use Current user, which will filter for items created by whoever is viewing the page at the time.

Column name This option is available only when you have a Document library selected in the Source dropdown. Enter a word to narrow down the list of column names, select a property from the dropdown, and enter your criteria.

Using tokens For properties with user values, such as Author, you can enter the [ME] token to display only your documents. For properties with values related to dates, such as Modified, you can enter the [TODAY] token to display only documents modified today. Additionally, you can show documents before or after today by using [TODAY]+/-. For example, to show only documents that were modified yesterday, you would use [TODAY]-1. Be sure to not use any spaces in this syntax.

Managed property This option is available for all Source options except Document library. Managed properties can be built-in or custom, but must be searchable. Enter a word to narrow down the list of searchable properties, select a property from the dropdown, and enter your criteria.

Using tokens For properties with user values, such as CreatedBy or ModifiedBy, you can enter the [ME] token to display only your documents. For properties with values related to dates, such as ContentModifiedTime, you can enter the [TODAY] token to display only documents modified today. Additionally, you can show documents before or after today by using [TODAY]+/-. For example, to show only items that were modified yesterday, you would use [TODAY]-1. Be sure to not use any spaces in this syntax.