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

toggle-cloak macro


{toggle-cloak} Macro

Overview

The {toggle-cloak} macro is used in conjunction with the cloak macro to show and hide blocks of content...

When pages become extremely large, or when there is information that might not always be required, you can use this macro in conjunction with the cloak macro to temporarily hide blocks of content. The user can show or hide cloaked blocks using on-screen navigation provided by the this macro.

Usage

The {toggle-cloak} macro has the following parameters:

{toggle-cloak:id=i|exclusive=v} your content

Parameters

Parameter Required Default Notes
id   The unique ID to assign to a cloak toggle. The cloak macro uses this ID to identify the blocks of content to be shown/hidden.
exclusive false By default the cloak-toggle will only affect those cloaked areas with the same ID, however by setting this parameter to true all other pieces of cloaked content at the same level will be hidden as the cloaked content with the matching ID is revealed.

License

This software is released under a BSD License

© 2005 David Peterson

Examples

Hints and Tips

Remember to include the composition-setup macro at the top of your content when using the cloak macro. You should also ensure that you have at least one toggle-cloak macro for each cloaked section of your content so that the user can display that content.

Frequently Asked Questions

None at present.

Issue Tracking

Adaptavist maintain a JIRA Project for tracking bug reports and feature requests for this macro. The currently reported items are shown below:

jiraissues: Could not download[ http://jira.adaptavist.com/secure/IssueNavigator.jspa?view=rss&pid=10036&component=10101&statusIds=1&statusIds=3&statusIds=4&statusIds=5&sorter/field=updated&sorter/order=DESC&tempMax=25&reset=true&decorator=none] : caused by : Circular redirect to 'http://jira.adaptavist.com:80/secure/IssueNavigator.jspa'

See Also

Toggle Sidebar

See Also

Incoming Links


Outgoing Links


Added by Alain Moran on Feb 09, 2006 14:39, last edited by Guy Fraser on Jul 21, 2008 19:04
Anonymous

Hi Guys,

Can I link to specific toggles from other pages, I might have my list on one page, and then want a specific cloak to appear according to my choice. A bit similar to using anchors.

Is there a way to make an expand all / collapse all button?


Adaptavist Theme Builder Powered by Atlassian Confluence