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 Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

458 views 3 18
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