ThemeBuilder for Confluence Server and DC

ThemeBuilder Skin Changes for Confluence 5.9

Due to a change in the Confluence theme decorators, the structure for the ThemeBuilder content panel has changed slightly. If you find that your pages have display issues, check the content panel code shown here, and see if you need to add the main-wrapper macro to your version of this panel code.

Content Panel

The main-wrapper macro needs to be added around the panel-element of content-body:

<ac:macro ac:name="main-wrapper">
<ac:rich-text-body>
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">content-body</ac:parameter>
</ac:macro>
</ac:rich-text-body>
</ac:macro>

Content Panel Code from ThemeBuilder 5.5.0 for Confluence 5.9 Onwards:

<ac:macro ac:name="panel-contentwrapper">
<ac:rich-text-body>
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.custom-content-header</ac:parameter>
</ac:macro>
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.actionerrors</ac:parameter>
</ac:macro>
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.metadata</ac:parameter>
</ac:macro>
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.spacetools-navigation</ac:parameter>
</ac:macro>
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.spacetools-secondary-navigation</ac:parameter>
</ac:macro>
<ac:macro ac:name="panel-show">
<ac:parameter ac:name="decorator">profile</ac:parameter>
<ac:rich-text-body>
<div id="main-content" class="wiki-content">
<ac:macro ac:name="panel-import">
<ac:parameter ac:name="panel">profile</ac:parameter>
</ac:macro>
</div>
</ac:rich-text-body>
</ac:macro>
<ac:macro ac:name="panel-hide">
<ac:parameter ac:name="decorator">profile</ac:parameter>
<ac:rich-text-body>
<ac:macro ac:name="main-wrapper">
<ac:rich-text-body>
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">content-body</ac:parameter>
</ac:macro>
</ac:rich-text-body>
</ac:macro>
</ac:rich-text-body>
</ac:macro>
<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>
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.footsection</ac:parameter>
</ac:macro>
<ac:macro ac:name="panel-element">
<ac:parameter ac:name="element">page.custom-content-footer</ac:parameter>
</ac:macro>
</ac:rich-text-body>
</ac:macro>

The macro should wrap

panel-elements:

  • page.actionerrors

  • page.metadata

  • page.spacetools-navigation

  • page.spacetools-secondary-navigation

macros:

  • panel-show | decorator=profile

  • panel-import | panel=profile

  • panel-hide | decorator=profile

  • panel-element | element=content.body

If you need any help with this change, please contact us, quoting ticket number BUILDER-497.