ThemeBuilder for Confluence Server and DC

Single Column Page

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.

Single Column Skin - No Sidebar

ThemeBuilder uses logic to determine which Confluence context to show a sidebar in; for example, it removes the sidebar when in page edit mode. You can alter this logic to switch off the sidebar in all page views. Use the steps below to create a single column skin with no sidebar:

  1. Go to the Confluence Administration icon, and select General Configuration.

  2. Select Edit Skins from the ThemeBuilder section of the left sidebar.

  3. Create a new skin or edit an existing one where you want to have no left sidebar.

  4. Select the flagLogic panel in the skin to edit it

    flaglogic panel screen
  5. Switch the 'with' and 'without' sidebar sections 'true' and 'false' values in the edit mode of the code section.

    This block of code

    Setting with-sidebar to true
    <ac:macro ac:name="set-flag">
     <ac:parameter ac:name="name">with-sidebar</ac:parameter>
     <ac:parameter ac:name="state">true</ac:parameter>
    </ac:macro>
    
    Setting without-sidebar to false
    <ac:macro ac:name="set-flag">
     <ac:parameter ac:name="name">without-sidebar</ac:parameter>
     <ac:parameter ac:name="state">false</ac:parameter>
    </ac:macro>

    will become this block of code

    Setting with-sidebar to true
    <ac:macro ac:name="set-flag">
     <ac:parameter ac:name="name">with-sidebar</ac:parameter>
     <ac:parameter ac:name="state">false</ac:parameter>
    </ac:macro>
    
    Setting without-sidebar to false
    <ac:macro ac:name="set-flag">
     <ac:parameter ac:name="name">without-sidebar</ac:parameter>
     <ac:parameter ac:name="state">true</ac:parameter>
    </ac:macro>
  6. Click Apply to apply the changes, and click Ok to close edit mode.
    This results in the sidebar not being shown when viewing a page using that skin.

    no sidebar

Switching to a No-Sidebar Skin Automatically

You may want to use the no-sidebar skin for certain pages or Confluence contexts. ThemeBuilder’s Use Skin Macro can switch a page to use any skin you name in the macro. Use the steps below to make the no-sidebar skin switch automatically:

  1. Go to a page to which you want to add the macro, and click Edit.

  2. Click the Insert More Content dropdown menu and choose Other Macros.

  3. Type use skin in the search bar and select Use Skin from the results.

    This can be added anywhere on the page, but we recommend putting it at the top of the page so all editors know this macro is in operation.

    use skin macro
  4. Fill in the desired fields in the Insert 'Use Skin' Macro window, then click Insert.

    insert use skin macro
<ac:macro ac:name="use-skin">
<ac:parameter ac:name="skin">TESTSKIN</ac:parameter>
</ac:macro>

This results in anyone viewing the page seeing only the single column layout.

See the Use Skin Macro page for more details.