Confluence 4.0 : Adding an All Versions Section to your Navigation Bar
This page last changed on Sep 05, 2011 by pwatson.
This page gives an example of how you might add an 'All Versions' section to your navigation side bar, as currently used in the Confluence documentation, Crowd documentation and the other Atlassian product documentation spaces. If you are viewing this page online on the Atlassian documentation wiki, you will be able to see the 'All Versions' section at the top left of the navigation sidebar. Below is a screenshot. A number of people have asked how we do it, so this page gives the answer. For details about creating the navigation side bar itself, please refer to Adding a Navigation Sidebar. Screenshot: 'All Versions' section (expanded) at top left of navigation bar Adding the Version Index to the Navigation SidebarThis is how we added the 'All Versions' section to the sidebar:
Here's the relevant section of our page layout as it is currently for the Confluence documentation (DOC) space: #if ($action.isPrintableVersion() == false) <style> .spacetree * ul{ padding-left:0px; margin-left: 0px; } .spacetree * li{ margin-left: 5px; padding-left:5px; } </style> <table cellspacing="2" cellpadding="5"> <tr> <td valign="top" align="left" width="30%" bgcolor="#eeecec" class="noprint"> <div class="tabletitle">All Versions</div> <div class="spacetree"> #includePage($helper.spaceKey "TreeNavigationVersions") </div> <div class="tabletitle">Confluence 2.10 Documentation</div> <div class="spacetree"> #includePage($helper.spaceKey "TreeNavigation") </div> </td> <td valign="top" align="left" width="70%" class="pagecontent"> <div class="wiki-content"> $body </div> </td> </tr> </table> #else <div class="wiki-content"> $body </div> #end Adding the Expand/Collapse Functionality to the Version IndexAnother question we are asked is how we group the content of the included page under a collapsible control. We use the Expand macro. The details are on the Expand macro's documentation page. Related Topics |
![]() |
Document generated by Confluence on Sep 19, 2011 02:41 |