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

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

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
Community showcase
Published Tuesday in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

348 views 0 9
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