How do I set navigation display option for all spaces?

Is there a way to switch spaces to using the Page tree option instead of Child pages when displaying the navigation in the sidebar? I know I can set it on a space-by-space basis using the Space Tools, but we have about 60 spaces so I'd like to make the change globally if possible.

3 answers

Hi, you can do this with a plugin. Do you have any experience with plugin development? Code for setting sidebars is 

bandanaManager.setValue(new ConfluenceBandanaContext(space.getKey()), "sidebar.nav-type", "page-tree");

If you need further help feel free to ask.

Thanks for the response Lukas, but creating a plugin to set the sidebar navigation type seems a bit overkill. Maybe if we had a plugin of custom configs options already for our Confluence instance then this would be an simple solution.

I think xou can do the same in database. Just look for bandana table.

And just FYI, with a bit experience such a plugin takes about 2h to develop ;)

0 vote
Davin Studer Community Champion Apr 09, 2015

Since 5.6, I believe, that is the default. But with your already created ones ... sorry, have fun clicking. smile

You can do this by altering the database:

UPDATE BANDANA set BANDANAVALUE='<string>page-tree</string>' where BANDANAKEY like 'sidebar.nav-type' and BANDANAVALUE like '<string>pages</string>';

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

253 views 11 10
Join discussion

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