SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to do a table of contents (TOC) for the sections of a page rather than the sites in a site collection for SharePoint 2010?

I'm thinking of the TOC on Wikipedia that appears at the top of longer pages and has links to sections within that page.

share|improve this question
up vote 1 down vote accepted

Maybe you can use the HTML Hyperlink Bookmark Tag. By using the tag you can create your own TOC with links to sections within the page. Here is a link to some explanation and example:

This can be used in e.g. a CEWP.

share|improve this answer
Thanks, Anita. I found an automated solution using jQuery:… I had to modify the JS file for it to detect id being undefined but it works well. It automatically generates a TOC for all H1, H2, H3 tags within the main content area of the page layout. I've added a custom True/False dropdown to the page layout to let the user enable/disable the TOC for pages. There's a display:none DIV on the page, floated left of the page heading. If the field is set to True, it shows the DIV and injects the TOC into it. – Alex C Aug 22 '11 at 11:22
Alex, That looks great! Thanks for keeping me posted. – Anita Boerboom Aug 23 '11 at 5:59

Old question I know , but I Stumpled accross this:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.