Controlling the Display of Page Elements
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>If removed, 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 also working on the CSS to hide that.
Edit and Tools Menus
The Tools menu is also in the Title panel. 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 delete the code 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 can see the Tools and Edit menus.
Labels and Like Areas
The code for Labels and Likes is at the bottom of the Content panel. One macro inserts Labels and Likes code. Delete this code to remove Labels and Likes:
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.labels-editor</ac:parameter>
</ac:macro>Space Tools Link
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.