How to automatically expand / show all child pages in the sidebar in Confluence?

How to automatically show all child pages in the sidebar in Confluence? I want all my confluence users to be able to see everything in the sidebar directly, expanded by default, without having to manually expand by clicking.


image2015-8-7 9:55:52.png


image2015-8-7 9:55:13.png


3 answers

Hi Gabriella,

It looks like you're using the documentation theme.  In that case, it is possible to expand the pages in the sidebar to a predefined level.

What you will need to do is go to "Browse" and then "Space Admin".

Then, under the "Look and Feel" section, click on "Themes".

Finally, click on "Configure Theme".

Then you can unclick the option "Page Tree" and instead include the pagetree macro in the navigation box.  For more info, look at this page:

More than likely you will want something like this:


The first one will show all pages underneath the home page and the 2nd one will show all pages in the space, even orphaned pages, expanded 3 levels (you could just set the number to something high like 50 and I think all pages would be expanded automatically). The third option will not expand pages by default, but will include a button above the page tree that would allow you to expand all pages.

You'll just have to play around a bit and find the option that works for you.  You should be aware, though, that the Documentation theme has been deprecated and is planned to be removed in the next version of Confluence (and it doesn't work in Cloud anymore at all).

How to do it in cloud version? This should be so simple.

I am also unable to do this in the cloud version given your example.image2017-1-6 15:50:7.png

In my Server version, this option is now separate - under Look and Feel, there is a separate item for the Sidebar, header and footer. Just paste that code into the sidebar section (or where-ever)

Works fine. Thank you.


How to excerpt single pages from expanding?

Hi Gabriella, I think they didn't do it for performance purpose: Every child page must be checked against permissions. Not that it's impossible to improve this performance (cache, etc), but no-one has done it yet.

There's a header and footer section, but I can't see a sidebar option in v10

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,479 views 4 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