Expand Table of Contents

How can I enable the headings in my TOC to be expandable and collapsable?

For instance Heading 1 shows and has an expand/collapse arrow next to it. On clicking the arrow the sub-heading appear. Additionally, it is imperative for me to be retain the link on H1.

> H1 (Show and Hide the sub-headings)

H1.1

H1.2

H1.3

2 answers

This widget could not be displayed.

Hello Vikram, manually you may use the headings along Expand Macro to accomplish the result you seek, other than that, it may need some development on top of Confluence.

Hi Nedel.

Yeah I did that already using the Expand Macro - however the link for the first heading i.e H1 goes away since it comes as the title in the Expand Macro. Any way to add a link there?

So supposing I need to go to H4 directly from the TOC, I cant. Because its not linked. I can however, go to H4.1

This widget could not be displayed.

A workaround solution to this is to type in the header that would show up int eh TOC but make the font color the same as the background making it invisible.  Seems like a very good use case but guess not important enough to develop for.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 30, 2018 in Confluence

How Manon Soubies-Camy uses Confluence + Trello to organize webinar notes and her knitting stash

@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...

866 views 8 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