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

Contents

Expand Macro

You can use the Expand macro to show and hide blocks of content. 

  1. In the page you want to change, click Edit. 
  2. At the place on the page where you want the Expand macro to appear, type as much of the following as needed to open the macro browser. 

    {expand
  3. In the macro browser, select the Expand macro. The macro appears on the page. 
  4. On the page, click the Expand macro. Buttons appear for that macro. 
  5. Click Edit. The Edit 'Expand' Macro dialog box appears. 
  6. In the Title field, type text for the link. For example, "Show a transcript of this video."

For an example of the Expand macro in use, refer to Video of Downloading a Collection via the GUI

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

  • Type {Com and from the list of macros, select Composition Setup.
  • Enter the parameters in the panel of the macro. Refer to the ServiceRocket site for documentation Exit Disclaimer logo

In this example the parameters are

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

To enter the macros

  • Type { and the first few characters.
  • When the macro browser opens, select the macro from the list.
  • In the macro dialog, enter the ID, TOC in the example, and select Save.

Refer to the ServiceRocket site for documentation of the Toggle Cloak Exit Disclaimer logo and Cloak Exit Disclaimer logo macros.

The following sections of this page are included to populate the table of contents macro.

First heading for the table of contents

Some text.

First subheading for the table of contents

Some text.

Second subheading for the table of contents

Some text.

  • No labels