The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to collapse the Table of Contents to the main headings

MT
Contributor
January 8, 2019

I have a confluence page with the Table of Contents but all the headings and sub-headings are displayed making the Table of Contents pretty long (and growing). I was wondering how I could collapse the Table of Contents to the main headings only but allow the users to expand the main topics to show the sub-headings?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Victor Mutambuki
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 8, 2019

MIlda,

Encase everything in the panel macro. that should collapse the headings.

Victor

MT
Contributor
January 8, 2019

Doesn't the panel macro only put a border around selected items/text? I also explored "Expand" macro but it only allows to display one item/topic and have everything else collapse under it. My top level headings are level 3 and I want to collapse the level 4 and only show level 3 headings but allow the user to expand level 3 headings to reveal level 4 headings.

Victor Mutambuki
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 8, 2019

Milda,

Use the Excerpt macro then insert the Expand macro in it. Inside the Expand macro, insert the Excerpt Include Macro.

Victor

MT
Contributor
January 8, 2019

Do I use the same page (where I am adding these macros) in the Excerpt Include Macro? This does not work for me, unless I am not getting what you are saying.

TAGS
AUG Leaders

Atlassian Community Events