How to add index in sharepoint communication page?

Khushboo Kumari 107 Reputation points
2023-10-03T12:19:45.3933333+00:00

Hi,

I am looking to add index in sharepoint communication site page? is it possible to add to Add a Table of Contents to a SharePoint Online communication site?

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2023-10-04T02:38:33.0666667+00:00

    Hi @Khushboo Kumari,

    Thank you for posting in this community. We sorry to inform you that we can't add indexes to SharePoint site pages. We can only add an index to a list or library column.

    You can use Markdown Webpart or Text Editor Webpart to add a Table of Contents to a SharePoint Online communication site.

    1.Using Page Anchors to link to a specific location on a SharePoint page.

    • Edit the SharePoint Page, then format the text you want to link to as Heading (Heading 1, Heading 2, or Heading 3) User's image
    • Republish the Page.
    • Next, generate a link by hovering over the header, right-click with your mouse, then choose Copy Link from the pop-up window. User's image

    2.Using Markdown Webpart to create a Table of Contents (copy the link you copied above).

    User's image

    3.Using Text Editor Webpart to create a Table of Contents (copy the link you copied above).

    User's image

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.