Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Toggle Sidebar

card macro


{card} Macro

Examples

Hints and Tips

Only use these macros where they are really needed as they can sometimes make a web page look a little cluttered.

When using these macros, remember that printouts will only include whichever card (ie. tab) is selected within each deck on a page.

Try not to nest decks of cards within each other (as seen in our examples). While it can be tempting to have a deck of sections with each section containing a deck of topics and each topic containing a deck of sub-topics, it can be very confusing for the end user if they are presented with such a structure - it's easy to loose track of where you are in relation to the other content. Instead, you should consider using the cloak macro for the inner content.

Frequently Asked Questions

Q I've set a default tab, but it's not shown by default?
A The default tab will only be shown when you first visit a page. When you select any tab, it's "remembered" (using cookies) for subsequent visits. By default, the cookie that remembers which tabs were selected will expire after 7 days - for more information, please see the composition-setup macro. adaptavist
Toggle Sidebar

See Also

Incoming Links


Outgoing Links


Added by Alain Moran on Feb 20, 2006 17:43, last edited by Guy Fraser on Jul 21, 2008 19:04

any idea how this works out in combination with the anchor macro? For example I want to link into the 3rd tab of the cards from another page? Thanks

Was this answered of line? We would also like to be able to anchor to different cards?

Ditto to the same question. I would like to be able to create a link from a source page that takes the user to a specific tab on the destination page. Is that possible? If so, how is this done?
Thanks in advance ...

Hello,

I'm interested as well by the same feature.

I have a page with 3 tabs. In another page, I want show a link tothe second tab of my first page.

How can I do it? The tabs are not named.

Thanks,

Bruno

I'm in the same boat, and would like to know how, if it is even possible. If not, wow it would be a GREAT addition!

When I try to use the deck and card concept in a nested fashion (similar to what is done in the example). The lower level tabs disappear when I move my mouse over the top level tabs. The only difference between my application and the example is that I put the lower layer tabs in a panel within a column. Any idea how to workaround this issue.

You can nest decks in the below fashion. I discovered it by accident, however have used it MANY times and have never experienced any issues. The trick is when closing the card or deck, you need to specify which. For example to close a card named tab15, you need to give the command card:tab15, surrounded by squiggly brackets of course. See below for a larger example. Hope this helps!

{deck:id=mydeck}
{card:label=tab1}
tab1 content goes here
{card:tab1}

{card:label=tab2}
tab2 content goes here

{deck:id=nesteddeck}
{card:label=tab2sub1}
tab2 subtab 1 content goes here
{card:tab2sub1}
{card:label=tab2sub2}
tab2 subtab 2 content goes here
{card:tab2sub2}
{deck:nesteddeck}

{card:tab2}

{card:label=tab3}
tab3 content goes here
{card:tab3}

{deck:mydeck}

Adaptavist Theme Builder Powered by Atlassian Confluence