Use the Tabs Macro
The Tabs macro allows you to add tabs to provide interactive, categorized, or isolated information to the page. A Tabs macro is added for each tab that you want to display.
You can add more than one group of tabs to a Confluence page.
Navigate to the page you want to edit.
Click the Edit icon.
Click Insert > View More in the Confluence editor.
Select the Tabs macro in the Select Macro screen. (Alternatively, use
/and begin to type
tabto access the macro via the quick insert menu.)
To start a new tab array on a page select the Start New Tab Group checkbox.
You only need to select this check box if you have multiple tab groups on a page. It only affects the tabs that follow it, so you only need select it at the start of a second group of tabs.
Select the New Tab Group Direction; this can be vertical or horizontal. The arrangement of all the tabs on a page is decided by the setting in the editor of the first tab in a group.
- Enter the title to be displayed on the tab, e.g. Venue.
- (optional) Add color to your tab titles.
- Select the color palette you want to use
- Default offers you seven colors.
- Recently used offers you the last seven colors you used in any of our macros.
Local Space - The options offered in this palette are specific to the space. The Space Admin can create and edit this palette. This may be used for your team's colors of choice.
Organization - This palette offers the same options in every space. Confluence Admins can create and edit this palette. This may be used for your organization's brand colors.
- Select a tab title color. Either click on a color or select the paint can icon to choose a custom color.
- Select the check box to apply the color to a border as well.
- Select the color palette you want to use
- (optional) Choose a text alignment option. This changes the alignment of the content of the individual tab. Each tab can have a different alignment.
Options are Left, Centre, or Right.
Click Save. A macro placeholder is displayed.
Add the content that you want to display on that tab.
Add an additional Tabs macro for each tab that you want to display. For example, we added additional macros for Workshops, Facilities, and Directions, in the following image.
The order in which you arrange the tabs on the page is the order in which the tabs will be displayed
Click Publish to see the rendered tabs on the page.
Example Style Options
Edit the macro
To make changes to the macro, for example, to change the title of the tabs, click the macro placeholder then click the Edit icon. Make the required changes, these will save automatically.
To make changes to the order of the tabs, change the order of the macros on the page. Drag and drop the macros to do this.
Add Multiple Tab Groups
- Add the tabs macros as normal.
- At the start of your new tab group select the Start New Tab Group checkbox.
Choose the New Tab Group Direction.
The New Tab Group Direction in the first tab is applied to all the tabs in its group. Selecting this option for following tabs will have no effect on the group.
Publish your page to see your multiple tab groups.
Put Other Macros Inside
It is possible to put other macros inside this one. Some larger or more complex macros may not work, or work differently than expected.
When trying to figure out which marcos can be put inside others there it helps to identify the type of macro you are working with. There are two general types of macro:-
Rich Body Macros -There are macros that you can type in on the Confluence Edit page
Simple Macros - These are macros that you can not add anything to on the edit page, you can only affect them by opening them in the editor.
Typically Rich Body Macros, do not work as expected, or at all when put inside other Rich Body Macros.
Most, but not all Simple macros can be put inside a Rich Body Macro, and often work as expected.
See below for more information on what happens when you put various macros inside this macro.
|Macro||Works As Normal||Notes|
|Attachments||This macro displays the attachements on the page. However the drag and drop upload function does not work.|
|Chart||This type of macro will not fit inside another macro.|
|Content by Label|
|Content Report Table|
|Create From Template|
|Excerpt||This type of macro will not fit inside another macro.|
|Expand||If you wish to use this macro you can put it in the cell of a table, inside the macro.|
|Files and Images|
|Jira Roadmap||Only displays a link.|
|Layouts||This type of macro will not fit inside another macro.|
|Opsgenie Incident Timeline|
|Page Properties||This type of macro will not fit inside another macro.|
|Page Properties Report||This macro works as normal except when the table contains any other macros.|
|Page Tree Search|
|Recently Updated Dashboard|
|Roadmap Planner||The roadmap displays, but the links do not display when you hover over the bars.|
|Shared Links Bookmark|
|Table of Contents|
|Table of Content Zone||This type of macro will not fit inside another macro.|
|Trello Board||Although the board will display in edit mode, it does not display in view mode.|