ThemeBuilder for Confluence Server and DC

Controlling the Display of Page Elements

For ThemeBuilder version 5.5.0+ / Confluence 5.9.7+ the flagLogic method has been changed. Please see the 'main' panel for the logic that controls which sidebar panel to show.
controlling display 01

Pages

Pages is the start of the breadcrumb trail; if removed, the breadcrumbs would also be removed. The code is in the 'title' panel:

<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.breadcrumbs</ac:parameter>
</ac:macro>

Remove this and both 'Pages' and the breadcrumbs will be gone.

If you want to keep the breadcrumbs then this CSS could be used instead to hide the first list item in the breadcrumbs trail:

.atb-body #breadcrumbs li.first {
    display: none;
}

This leaves a slash in front of the breadcrumbs and we are working on the CSS to hide that as well.

Edit and Tools Menu

The Tools Menu is also in the 'title' panel; this is a surprisingly busy area. The code for this menu is:

<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.content-navigation</ac:parameter>
</ac:macro>

You can remove the code completely or control who sees it using Flag Logic. Flag Logic can be used in two ways:

  • Directly in the macro using the flag or notflag parameters set in the 'flagLogic' panel

  • Together with the builder-hide and builder-show macros

For this example, use the builder-show macro to ensure that only 'confluence -administrators' see the tools and edit menu.

  1. In the 'title' panel insert a new line just after the first line <div id="main-header">

  2. Use the 'Insert Macro' button to browse and choose the 'builder-show' macro, and then scroll down to the field for 'Group Membership'

    controlling display 02
  3. Add the name of the group you want to only show the wrapped content to. In this case 'confluence-administrators'

  4. Click Insert and the macro will be added to the panel

  5. Then copy and cut the code for the Edit and Tools menu

    <ac:macro ac:name="panel-element">
    <ac:parameter ac:name="element">page.content-navigation</ac:parameter>
    </ac:macro>
    1. Then paste it inside the 'builder-show' macro, between the <ac:rich-text-body> tags

      controlling-display-03

  6. When you 'Apply' the changes to the panel only 'confluence-administrators' will be able to see the Edit and Tools menu.

Labels and Like Areas

The code for the Labels and Likes is at the bottom of the 'content' panel. One macro inserts both the Labels and Likes code. Delete this code to remove the Labels and Likes:

<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.labels-editor</ac:parameter>
</ac:macro>

The Space Tools link is part of a block of default Confluence content added in to the 'with-sidebar' panel by this code:

<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.ia-sidebar</ac:parameter>
</ac:macro>

To remove elements or control the display of this area you will need to rebuild the sidebar as needed.