Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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.

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.

Thanks for the answer, it was very useful

Suggest an answer

Log in or Sign up to
This widget could not be displayed.
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

591 views 5 18
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you