Afternoon,
How do you make in a confluence page, a 2 column Table of Contents to save space. I understand we can split pages sections but I can't see a way to have a table of contents spread over to the space next to it which is empty.
For Confluence Cloud 🙁
If the web address of your Confluence instance is something like https://yourcompanyname.atlassian.net, that means you are on Confluence Cloud and as a result you will not be able to do this.
For Confluence Server 🎉
Otherwise you are probably on Confluence Server, in which case, you can create your own user macro to achieve this.
Get an administrator to add the following user macro:
## Macro name: toc-2columns
## Macro title: Table of Contents in 2 Columns
## Macro has a body: No
## Developed by: David Simpson <community.atlassian.com@davidsimpson.me>
## Date created: 2020-03-16
## Installed by: Your Name
##
## @noparams
<div style="columns: 400px 2;">
<ac:structured-macro ac:name="toc" ac:schema-version="1" />
</div>
This user macro simply adds some formatting around the Table of Contents macro to split it into 2 columns.
Hi David,
thank you very much for sharing the instruction. It works fine for me.
Could you please let me know what to add in the macro code for hiding heading 3 and below?
I tried the following taken from the default toc-macro code but it doesn't work ...
ac:data-macro-parameters="maxLevel=2"
Thanks a lot in advance!
Regards, Carina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So here is another way to do this without using a macro or having to use a static list.
Set up 2 columns - (column A and column B) either with panels or a table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have Admin permissions, so the macro option was not viable for me. But, I was able to come up with a solution all the same. Please remember that a Table of Contents (ToC) is nothing more than a collection of links to fixed references on the page via Headers.
Here are the steps I used:
The net effect was to have a split ToC that used the entire width of the page, with no white space. And, as a bonus, the bulk of the table was collapsible except for the Title and Header row (thanks to the Expand macro):
Issues with this Solution:
Tip! You can insert the original Table of Contents inside the Expand macro to hide it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.