The Adaptavist Group LogoDocumentation

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.

Add a 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)
    stringhorizontal
    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. stringnone
    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. stringnone
    Text Shown on HoverEnter text that displays as a tooltip to users on hover.stringnone
  7. Click Insert.
    The macro placeholder displays.

Add a Tabs Page to your 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 TitleEnter the title of the tab.none
    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
    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
    Lazy LoadingEnables Lazy loading of tabbed content. It is triggered when the tab is activated.false

    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

Vertical tabs

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.

Search documentation

Start typing to search the docs.