Forums

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

Auto expand child pages in sidebar

Krithica G (EXTERNAL)
Contributor
February 19, 2024

When opening a space , how to auto-expand and show all the child pages in the sidebar?

 

3 answers

1 accepted

0 votes
Answer accepted
Nikola Perisic
Community Champion
February 19, 2024

Welcome to the community @Krithica G (EXTERNAL) !

You can refer to this page: https://confluence.atlassian.com/doc/page-tree-macro-163414255.html

To summarise the startDepth needs to be changed to 1 in order to show the child pages automatically when the page is open.

Krithica G (EXTERNAL)
Contributor
February 19, 2024

Thank you. this shows in the page. Can the same be configured in the sidebar?

Nikola Perisic
Community Champion
February 19, 2024

I see, there is another reference here: https://community.atlassian.com/t5/Confluence-questions/How-to-auto-expand-sidebar-page-tree-to-show-children-of-current/qaq-p/923972

There is no other reference to the sidebar than this page here.

There are other articles but those are related to the cloud.

1 vote
Marc -Devoteam-
Community Champion
February 19, 2024

Hi @Krithica G (EXTERNAL) 

Unfortunate this can't be achieved in the sidebar of a space.

Also I think they didn't do it for performance purpose, as every child page must be checked against  possible page permissions.

0 votes
Ben Robbins
Contributor
January 13, 2026

Space Tools > Look and Feel > Sidebar, header and footer

In the "Sidebar" text box, add the below including a number for the child depth you wish to expand to:

{pagetree:startDepth=2}

Note: You will need to hide the default tree (Space tools > Configure sidebar)

Ref: https://support.atlassian.com/confluence/kb/how-to-expand-content-tree/

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.6.2
TAGS
AUG Leaders

Atlassian Community Events