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 votes
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
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...

278 views 2 10
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