How to add tabs in a confluence page?

Avinash July 24, 2012

Hi,

I want to add different tabs inside a confluence page with custom tab names and colors. I tried using the composition set up macro with deck and card macro like the following sample code

{composition-setup}

{deck:id=myDeck}

{card:label=tab1}

This is the first tab's content

{card}

{card:label=tab2}

This is the second tab's content

{card}

{deck}

{composition-setup}

But, Nothing gets displayed on the page. Somebody help!

Thanks

3 answers

1 accepted

3 votes
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2012

Just use the composition setup at the top, not surrounding the main body.

Avinash July 24, 2012

Oh, just got it working! for some reason didnt show up in preview. Thanks a lot!

Avinash July 24, 2012

You mean have the composition setup macro at the top and not at the bottom? I tried that too...still nothing! Am i missing something?

0 votes
Jeannene Schelski June 3, 2016

What version of confluence is this in.  I am trying to make the tabs across the page but dont see how I can go into the source code platform to update the code only see the view mode and edit mode to update the pages I have .  Can you assist.

0 votes
CharlesH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2012
Are you using Confluence 4? In this case the composition-setup macro is not required for deck/cards. Just use those macros directly.
Avinash July 24, 2012

No, Im using Confluence 3.5

Avinash July 24, 2012

I came across navitab macro. It automatically pulls in all the pages assocated with a root page and assigns them as labels. Also clicking the tab opens up the page associated with it. It doesnt give you a snapshot of the content. So basically this macro doesnt serve the purpose but it might be useful if you want the page links to be presented in a cool way!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events