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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

913 views 23 12
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