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

This widget could not be displayed.

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?

This widget could not be displayed.
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!

This widget could not be displayed.

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
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

363 views 2 5
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