Overview:
The {cloak} macro is used in conjunction with the toggle-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 to temporarily hide blocks of content. The user can show or hide cloaked blocks using on-screen navigation provided by the toggle-cloak macro.
Parameters:
The {cloak} macro has the following parameters:
{cloak:id=i|visible=v}
your content
{cloak}
| Parameter | Required | Default | Notes |
|---|---|---|---|
| id | The unique ID to assign to a cloaked block of content. The toggle-cloak macro uses this ID to show and hide that block of content. | ||
| visible | false | By default the cloaked content will be hidden, but you can set this parameter to true to show it by default. |
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.
.png)








Comments (6)
Mar 09, 2009
Dennis King says:
I have not found a way to put more than a single line of text inside a cloak tag...I have not found a way to put more than a single line of text inside a cloak tag without breaking the cloaking, cause cloaked section nesting, etc. One of the benefits of cloaking is the ability to hide large sections of text, like in an FAQ where each answer might be a couple of paragraphs. Is there any way to do this?
{composition-setup} {toggle-cloak:id=LongSection} *A long set of instructions* {cloak:id=LongSection} # Step One ## Sub-step # Step Two ## Etc. {cloak} {toggle-cloak:id=AnotherSection} *This gets messy* {cloak:id=AnotherSection}This item works fine but gets nested/hidden{cloak}A long set of instructions
This gets messy
This item works fine but gets nested/hidden
May 05, 2009
Leon Collins says:
Place the text in a panel like so: The Elluminate Live Server runs on: Win...Place the text in a panel like so:
The Elluminate Live Server runs on:
Apr 18, 2010
Klaus Feldmann says:
Hi Leon, please edit your comment by using the code macro so that others can see...Hi Leon,
please edit your comment by using the code macro so that others can see your example. Otherwise it will be rendered and cant be shown.
best,
Klaus
Apr 05, 2011
Suzanne Marcel says:
Oops, should have listened to Klaus first. Here is my question once more. I am...Oops, should have listened to Klaus first. Here is my question once more.
I am using the toggle-cloak macro and the panel macro to bullet point my list items that are cloaked. This list is one long single list of cloaked items. I was hoping to save white space by separating this list into three equal columns on the page using the section and column macros. Once separated into columns, the cloaked items are no longer viewable except for the bottom-most list item in the column. No matter which list item I click on, the bottom-most cloaked items open up at the bottom of that column. Is there a way around this? Any other suggestions out there for cleaning up the extra white-space.
Thanks.
S-
Apr 04, 2011
Suzanne Marcel says:
I am using the macro to cloak bulleted list items. Now instead of one single l...I am using the
macro to cloak bulleted list items. Now instead of one single long list of cloaked items, I was hoping to save some white-space by placing the cloaked list items in three equal columns using theAny suggestions are welcome.
Thanks.
Apr 23, 2010
Travis Mattera says:
Has anyone had luck with cloaked content remembering its cloak state when shown ...Has anyone had luck with cloaked content remembering its cloak state when shown with the {include} macro?
I have a wiki page with a cloaked list. I {include} that page in another one. I put the {composition-setup} macro in both pages with a cloak.memory.duration=7 parameter. If I uncloak the list in the included page and navigate away from the parent page, upon returning the list is again cloaked.