How to add tabs in a confluence page?

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

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

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

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?

Are you using Confluence 4? In this case the composition-setup macro is not required for deck/cards. Just use those macros directly.

No, Im using Confluence 3.5

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!

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

345 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you