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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,798 views 26 10
Join discussion

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