NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 55 Next »

Multiple macros are available to show and hide blocks of content. For example, if you want to provide a transcript with a video, you can use one of these macros to hide the transcript. Readers who want to read the transcript can click the link to expand the text. 

  • If you want to specify different text for expand and collapse, use the combination of Cloak, Toggle Cloak, and Composition macros.
  • Otherwise, use the Expand macro. (It is easier to implement.) 
Contents of this page

Expand Macro

You can use the Expand macro to show and hide blocks of content. For instructions, refer to Atlassian help:

https://confluence.atlassian.com/conf613/expand-macro-964960814.html Exit Disclaimer logo

Make sure the text for the link is accessible, such as "Transcript of this video." Avoid vague link text such as "Click here." 

For examples of the Expand macro in use, try searching for the Expand macro.

Cloak, Toggle Cloak, and Composition Setup Macros

The Cloak macro may be used in conjunction with the Toggle Cloak macro to show and hide blocks of content. Both must be preceded by the Composition Setup macro.

To enter the Composition Setup macro

  1. Type {Com and from the list of macros, select Composition Setup.
  2. Enter the parameters in the panel of the macro. 

Consider an example with the following parameters.

cloak.toggle.type = text
cloak.toggle.open=[show]
cloak.toggle.close=[hide]

The Composition Setup macro follows. It is not visible on the completed page.

In this example, a panel encloses a table of contents which may be shown or hidden. The first macro in the panel is the Toggle Cloak macro with the ID TOC. Next is the Cloak macro with the ID TOC. The Cloak macro contains the Table of Contents macro. Thus the Table of Contents macro is cloaked.

Contents of this page

To enter the macros

  1. Type { and the first few characters.
  2. When the macro browser opens, select the macro from the list.
  3. In the macro dialog box, enter the ID (such as TOC in the example). 
  4. Click Save.

Refer to the ServiceRocket site for documentation of the Composition Setup, Toggle Cloak, and Cloak macros:

  • No labels