Tabs

Tabs is a pair of macros that enable you to add AUI-styled tabs to provide interactive and categorized information to the page. First add a Tabs Container to the page, then add a Tabs Page macro to the Tabs Container. A Tabs Page macro must be added for each individual tab. You can customise your tabs using our CSS Style Sheet macro.

Walkthrough

Watch our video walkthrough to see the Tabs macro in action.

Instructions

Tabs Container

  1. Navigate to the page you want to edit.

  2. Click Edit.

  3. Click the position where you want to add your tabs.
  4. Click Insert More Content Other Macros.

  5. Select the Tabs Container macro from the Macro Browser.

  6. Select the tab direction and complete any additional options if desired.

    ParameterDescriptionTypeDefaultRequired

    Tab Group Direction

    Select the layout of the tabs:

    • Horizontal (across the top of the tabs container)

    • Vertically (down the left of the container)

    string

    horizontal

    (tick)

    ID

    Specify a unique ID for this element. Use this to link to Tooltip, Dialog, or Rollover Macros. 

    If using this parameter to apply styling to the element, do not include the # selector.

    string

    none

    (error)

    CSS Class

    Use in combination with Global Confluence CSS or a CSS Stylesheet macro that you have added to your page.

    Enter the CSS class name(s) to apply to the macro (case sensitive); multiple classes can be separated by a space or comma. Do not include the.selector in the class name.

    string

    none

    (error)

    Text Shown on Hover

    Enter text that displays as a tooltip to users on hover.

    string

    none

    (error)

  7. Click Insert. The macro placeholder displays.

Tabs Page

Once you have added a tabs container to your page, you can start adding tab pages.

  1. Click the Tabs Container macro placeholder.

  2. Click Insert More Content Other Macros.

  3. Select the Tabs Page macro from the Macro Browser.

  4. Define the tab using the following parameters. Title is required.

    ParameterDescriptionDefaultRequired

    Tab Title

    Enter the title of the tab.

    none

    (tick)

    ID

    Specify a unique ID for this element. Use this to link to Tooltip, Dialog, or Rollover Macros. 

    If using this parameter to apply styling to the element, do not include the # selector.

    none

    (error)

    CSS Class

    Option to apply a Use in combination with Global Confluence CSS or a CSS Stylesheet macro that you have added to your page.

    Enter the CSS class name(s) to apply to the macro (case sensitive); multiple classes can be separated by a space or comma. Do not include the.selector in the class name.

    none

    (error)

    Lazy Loading

    Enables Lazy loading of tabbed content. It is triggered when the tab is activated.

    false

    (error)

    Lazy Loading limitations:

    • Inline comments in tabbed content do not work with Lazy Loading enabled.
    • Lazy Loading does not work with some more complex Macros including:
      • Jira Macro.
      • MS Word Macro.

      • Confluence Create from Template

      • Confluence Expand macro

      • Confluence Table of Contents macro

      • Team Calendars
  5. Click Insert. The macro placeholder displays inside the Tabs Container macro.

  6. Add the tab page content. Add an additional Tab Page macro for each tab that you want to create. You can change the order of tabs by dragging the macro placeholder to the desired position.


  7. Save the page to view the rendered tabs. 

Horizontal tabs

Idea House - An award-winning conference and creativity centre, with lecture halls, labs and a performance space
  • Leadership in small groups
  • Sustainable Planning
  • Inclusivity by Design
  • Disabled Parking
  • Ground Floor Toilets
  • On-site Restaurant
  • Tea and Coffee Service
Get on the A1 heading North. Take exit 17 and follow the signs.

Vertical tabs

Idea House - An award-winning conference and creativity centre, with lecture halls, labs and a performance space
  • Leadership in small groups
  • Sustainable Planning
  • Inclusivity by Design
  • Disabled Parking
  • Ground Floor Toilets
  • On-site Restaurant
  • Tea and Coffee Service
Get on the A1 heading North. Take exit 17 and follow the signs.

Anchor to Tab

If you want to anchor to a tabs page, you do not need to insert an Anchor macro; you can simply use the Tabs Page macro ID parameter.

  1. Define a unique ID for the Tabs Page, e.g. CS1.

     
  2. Navigate to the location or page where you want to create a link to the tab page.
  3. Click Insert link > Advanced, then paste the full link of the page followed by "#" and the ID of the tab page, e.g. https://docs.adaptavist.com/display/CFM4CS/Tabs#CS1.
  4. Save the page then test the link. It should point to the correct page and tab.

If you are still stuck please contact our support team who can offer you more assistance. 
You can try our full range of content formatting macros for free by visiting the Marketplace.
On this page