Skip to end of metadata
Go to start of metadata

ThemeBuilder Macro - Panel Element

panel-element

Allows the display of the Confluence content 'confluence-elements' in a builder panel. To be used in ThemeBuilder panels, will not work if added in the Confluence editor.

Categories: development

Usage

Storage Format

  <ac:macro ac:name="panel-element">
    <ac:parameter ac:name="parameter">value</ac:parameter>
  </ac:macro>

 

Wiki Markup

{panel-element:parameter=value}

Parameter

Name

Description

Type

Default

Required

element

Element

The element to insert

enum

 

(tick)

flag

Flag

A list of flags, one of which must be defined for the content to be displayed

string

 

(error)

notflag

Not Flag

A list of flags which must not be defined for the content to be displayed

string

 

(error)

List of confluence-elements

  • content-body
  • page.globalmessages
  • page.actionerrors
  • page.breadcrumbs
  • page.profile-menu
  • page.space-menu
  • page.space-view-controls
  • page.title-text-span
  • page.spacetools-navigation
  • page.spacetools-secondary-navigation
  • page.footer
  • page.tab-navigation
  • page.content-navigation
  • page.profile-navigation
  • page.ia-sidebar
  • page.blog-sidebar
  • page.infopanel
  • page.surtitle
  • page.labels-editor
  • page.metadata
  • page.comments
  • page.dashboard-welcome
  • page.dashboard-actions
  • page.dashboard-panels
  • page.dashboard-recent

Example

The code that adds the Confluence Labels and Comments to the bottom of the page is in the ROOT skin Content panel.

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

Result

Moving a confluence-element

Any panel-element macro can be moved or deleted to customise your Confluence page. So if we took the panel-element for Labels and moved it below the Comments their order on the page is changed.

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

 

Result