SharePoint Document Issues

How to Set SharePoint Highlighted Content to Show Files from a Folder

Khadija KhanKhadija Khan Oct 21, 2026 871 views

Question details

The user wants to configure the SharePoint Highlighted Content web part to display documents or videos stored within a specific folder.

How to Display Files from a Specific Folder Using SharePoint Highlighted Content
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Setting up a SharePoint site page to highlight documents or media files residing in a designated folder.
Observed behavior
The user needs the correct configuration steps and query formats to successfully filter and display the targeted folder's content on the page.
Before you start

Ensure you have editing permissions for the SharePoint page and know the exact URL path of the target folder whose files you wish to display.

Solution 1Recommended

Use a Custom Query with the Folder Path

The most direct and reliable method to show files from a specific folder is by utilizing a custom KQL query with the folder's URL path.

By switching the Highlighted Content web part to use a custom query, you bypass standard metadata filters and directly target the storage location. This ensures all files within that exact path are pulled into the display.

1
Edit the SharePoint Page

Navigate to the SharePoint page where you want to display the files. Click 'Edit' in the top right corner.

2
Edit the Highlighted Content Web Part

Hover over the Highlighted Content web part and click the 'Edit web part' (pencil) icon on the left side to open the properties pane.

3
Select Custom Query

In the property pane on the right, look for the 'Source' dropdown and change the selection to 'Custom query'.

4
Enter the Folder Path

In the 'Query text (KQL)' box, type your query using the Path property. For example: Path:https://yoursiteurl/shared%20documents/yourfoldername/ (replace the URL with your actual folder path).

5
Apply and Publish

Click 'Apply' to test the query. If the files display correctly, click 'Republish' or 'Publish' at the top of the page to save your changes.

Use a Custom Query with the Folder Path
Wait for Search Indexing: If you recently created the folder or uploaded files, it may take a few minutes for SharePoint's search crawler to index them before they appear in the custom query results.
Free Microsoft Office alternative

Edit and Manage Your Office Documents Seamlessly with WPS Office

While SharePoint handles your team's intranet file organization, WPS Office provides a lightweight, free, and highly compatible suite for creating and editing your downloaded Word, Excel, and PowerPoint files.

  1. 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your PC or Mac in minutes.
  2. 2. Open Your SharePoint Documents: Download your target documents from your SharePoint folder and open them directly in WPS Office.
  3. 3. Edit and Re-upload: Make your changes using the familiar editing tools, save the document in its original Microsoft format, and upload it back to SharePoint.
Highly compatible with Microsoft Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) formats.Free alternative to heavy Microsoft 365 desktop apps with a familiar, easy-to-use interface.Lightweight installation ensures fast startup and smooth document editing on any device.Tabbed interface allows you to manage multiple SharePoint downloads in a single window seamlessly.
microsoft office alternative - wps office

Frequently Asked Questions

Why aren't my folder files showing up immediately after applying the custom query?

The Highlighted Content web part relies on SharePoint search. Search indexing can sometimes take 10 to 15 minutes to crawl new folders, files, or configuration changes. Wait a short while and refresh the page.

Can I use the 'Filter by Title' option to show a folder?

No, filtering by title generally applies to the individual file names rather than the folder name. Using a custom path query or a managed property (like a custom category column) is much more reliable for displaying all contents of a specific folder.

Does the custom path query include files inside subfolders?

Yes, by default a path query generally includes items nested beneath that URL path. If you only want files in the root of that specific folder, you may need to add additional KQL exclusions or rely on metadata tagging instead.