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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

84 views 0 5
Read article

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