Display a Working Table of Contents on a Different Page

I have the following scenario, and if anyone has a better suggestion, I'm all ears!

I want to be able to pull in a table of contents of the headings on various pages onto a single page. I can make this work using an Excerpt macro on the TOC and then pulling in the TOC on another page with the Excerpt Include macro. However, the TOC doesn't work as the links point to the current page.

Essentially I need links to all the headings dynamically created for a different page to display on another page. Is there a way to do this?

We're using Confluence 5.5.2, if that matters.

3 answers

1 accepted

7 votes
Answer accepted

Got it!

In the Table of Contents macro, you have to select the Absolute URL check box. Then you can the TOC inside an Excerpt, pull that Excerpt to another page, and the URLs will function correctly.

Thanks for the answer, it was very useful

I got it working. Thanks.

But when I export it to PDF, the hyperlinks are not pointing to the actual PDF sections rather redirecting to the Actual URLs. Any help to correct this is really appreciated.I tried using excerpts and Page includes but the Chapter numbering is starting with the page titles and all the section numbering got messed up. Any help is really really really appreciated.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,639 views 4 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you