Some users don't know about the menu button for hiding the sidebar, so on a specific page I'd like to make a normal HTML button that when clicked toggles the sidebar. Then I can put it in a panel.
You can certainly do that. All you need to do it edit the page template and put a button somewhere on the page that will fire off some javascript to programatically click the one in your header. Now, from a usability standpoint I think it is a better idea just to educate the users rather than duplicate functionality on the page.
Didn't realize that you want it only an a specific page. Same answer just without editing the template. I would create a user macro to do this. It would look something like this.
## @noparams <form class="aui"> <button id="custom-splitter-toggle" class="aui-button">Toggle Sidebar</button> </form> <script type="text/javascript"> AJS.toInit(function(){ AJS.$('#custom-splitter-toggle').click(function(event){ AJS.$('#splitter-button').click(); event.preventDefault(); }); }); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There's a button on the sidebar to toggle it, next to "space tools". The << and >>
That's in the standard theme though - if you're using a different version of Confluence and/or a different theme, it might not be there, but it might be possible to add it. But we'd need to know what we're working with.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm using the Documentation theme, and there is a button right next to search that does what I want, but since it is unlabled people miss it. I'd like to add a second more obvious button in the page text itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.