logo
search
SharePoint Document Issues

How to Automatically List SharePoint Site Pages in a Table of Contents

Elise WilliamsElise Williams Oct 9, 2026 869 views

Question details

The user wants to automatically display a list of site pages, functioning as a Table of Contents, on a SharePoint modern site's home page.

How to Automatically List SharePoint Site Pages in a Table of Contents
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Organizing and displaying newly added wiki or site pages dynamically on a SharePoint home page.
Observed behavior
The user aims to automate the listing of site pages so that new pages appear dynamically in a Table of Contents or hierarchical tree structure without manual updates.
Before you start

Ensure you have Edit permissions for the SharePoint site home page and that the pages you want to list have been published rather than just saved as drafts.

Solution 1Recommended

Use the Highlighted Content Web Part

The Highlighted Content web part dynamically aggregates and displays pages from your site, automatically updating the list as new pages are created.

Modern SharePoint sites support web parts that automatically filter and list content. By configuring the source and layout, you can create an auto-updating Table of Contents for your site pages.

1
Edit the Home Page

Navigate to your SharePoint home page and click the 'Edit' button located at the top right corner of the screen.

2
Add the Web Part

Hover your cursor over or below an existing web part section, click the '+' icon to open the web part menu, and search for 'Highlighted content'.

3
Configure Content Source

Click the 'Edit web part' (pencil icon) next to the newly added Highlighted Content web part. In the property pane on the right, set the 'Source' to 'The page library on this site' and set 'Type' to 'Pages'.

4
Adjust Layout and Republish

Scroll down the property pane to choose a layout like 'List' or 'Compact' to resemble a traditional Table of Contents. Finally, click 'Republish' at the top right of the page to apply your changes.

Use the Highlighted Content Web Part
Dynamic Updates: Once configured, this list will automatically update as new site pages are published in the selected source library.
Free Microsoft Office alternative

Need a robust document editor for your SharePoint files? Try WPS Office

While organizing your SharePoint site pages, you may need a reliable office suite to create, read, and edit attached documents. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office, featuring a familiar interface and seamless migration.

  1. 1. Download and Install WPS Office: Visit the official WPS website, download the free installer, and complete the installation process in minutes.
  2. 2. Open Your SharePoint Documents: Sync your SharePoint document library to your PC using OneDrive, then open your .docx, .xlsx, or .pptx files directly within WPS Office.
  3. 3. Edit and Save Seamlessly: Use the familiar ribbon interface to edit your documents. When you click save, changes will automatically sync back to your SharePoint site.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx) used in SharePoint.Easily view and edit documents downloaded from or synced with your SharePoint libraries.Lightweight installation with blazing-fast software performance.All-in-one suite equipped with integrated PDF editing and conversion tools.
microsoft office alternative - wps office

Frequently Asked Questions

Can I filter which SharePoint pages appear in the Highlighted Content web part?

Yes. In the web part's property pane, you can use the 'Filter' and 'Sort' options to include or exclude pages based on specific words in the title, custom metadata properties, or recently added status.

Why are my newly created site pages not showing up in the web part instantly?

The Highlighted Content web part relies on SharePoint search indexing. It may take a few minutes for newly created or modified pages to be crawled and displayed. Additionally, ensure the page is fully published and not just saved as a draft.

Is there a built-in 'Tree View' web part in modern SharePoint?

Modern SharePoint sites do not have the classic 'Tree View' web part natively available. To achieve a hierarchical view, you must use grouped library views, build custom navigation menus, or rely on third-party web parts.