Skip to end of metadata
Go to start of metadata

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.

To make a single column skin - no sidebar

ThemeBuilder uses logic to determine which Confluence context to show a sidebar in, for example remove the sidebar when in page edit mode. You can alter this logic to switch off the sidebar in all page views.

  1. Either create a new skin or edit an existing one where you want to have no left sidebar.

  2. Select the flaglogic panel in the skin to edit it



  3. In the edit mode code section switch the 'with' and 'without' sidebar sections 'true' and 'false' values.

    So this

            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>

    becomes this

            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>

    Full section shown with true/false values switched.

        <ac:macro ac:name="panel-hide">
          <ac:parameter ac:name="mode">edit</ac:parameter>
          <ac:rich-text-body>
            In edit mode
            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>
            Setting login to false
            <ac:macro ac:name="set-flag">
              <ac:parameter ac:name="name">login</ac:parameter>
              <ac:parameter ac:name="state">false</ac:parameter>
            </ac:macro>
          </ac:rich-text-body>
        </ac:macro>
  4. 'Apply' the changes.

  5. Result - the sidebar is not shown when viewing a page using that skin.

Switch to a 'no-sidebar' skin automatically

You may want to use the 'no-sidebar' skin for certain pages or Confluence contexts. The ThemeBuilder 'use-skin' macro can switch a page to use any skin you name in the macro.

Instructions

  1. Edit the page content

  2. Add the 'use-skin' macro anywhere in the editable content
    We recommend the top of the page so all editors know this macro is in operation

  3. Example



    <ac:macro ac:name="use-skin">
       <ac:parameter ac:name="skin">SINGLECOLUMN</ac:parameter>
    </ac:macro>
  4. Result - anyone viewing the page will only see the single column layout.

    See the use-skin macro page for more details.

 

  • No labels