How Do I get the Documentation Sidebar to not Default to Hidden?

For some reason in Confluence, the documentation theme Sidebar is always hidden until the user hits the button at the top of the page. How do I get it to default to being showed upon login?

2 answers

1 accepted

3 votes
David Simpson Community Champion Jun 26, 2012

Edit the Custom HTML in the Confluence Admin section. In At the end of the HEAD add:

<script>
  AJS.toInit(function(){
    AJS.$('#splitter-button.collapsed').click();
  });
</script>

Thanks! This got the job done!

The default behaviour as far as I know is for the sidebar to be shown, not hidden. I'd suggest seeing if any JavaScript errors occur during page load, which may relate to the sidebar. Are you seeing the same behaviour in all browsers? What version of Confluence / Documentation theme are you using?

Yep. It's in both Chrome and Firefox, and it's something that's affecting all of my users. Using Firebug, I'm not seeing any JS errors. So, I don't know what it could be. Do any of you know what it could be, or potentially any way to force the system to show it?

I'm using confluence 4.2.2 and Documentation version 4.2.2

I'm having the same issue, I think. I'm running versino 4.2.4 of Confluence and the Documentation theme. The theme works fine in IE8, but it looks like the initialisation script is not running in Firefox. I can see the Documentation Theme header and footer, but not he sidebar or the menu-bar button to turn the side-bar on and off. This is in Firefox 10.0.5. In the Firefox web console I can see the doc-theme.js script being loaded, but no errors from it.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

464 views 19 9
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