Table of Contents - set it up globally?


I would like to know if it is at all possible to somehow define the global layout of pages so that each pages contains a table of contents somewhere (at the top, or like in a box/panel on the right hand side, ...).

Until know I only know about the {toc} macro, which creates good customizable tables of contents, but has the drawback that we'd have to add this macro on each and every last wiki page. This is quite a pain to do in the first place, but beware if the preferred TOC-layout changes at some point in the future - we would have to change all pages all over again...

So what I'm looking for is some layout option or whatever, that lets me define 'globally' (either for all spaces or just on a per-space basis) that each wiki page displays a table of content. I saw that it is possible to have some sort of 'navi frames' but only with the page-tree and not with the in-page-table-of-contents.

I'd much appreciate any input to this point.



1 answer

1 accepted

0 votes
Answer accepted

Inside of your Administration page there is a

Edit Global Space Layout

Option on the left side. This will allow you to globally insert stuff into your pages. Some themes however do override these changes so you will have to choose your themes wisely.

Thanks, in the meantime I figured out that I can use the space layout to insert macros ({toc} in my case) into some areas of the page...

I went for the 'Page Top' area. Now my tables of contents are all located above the page title, but its still better than nothing.

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...

908 views 2 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