Access Keys:
Skip to content (Access Key - 0)

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 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.

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.

See Also



Ask questions, get help and report bugs & issues on our Community Site

View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence