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 39 Next »

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.

This example starts with the Composition Setup macro, which is not visible on the completed page. To enter the 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, in the first panel, the Toggle Cloak macro with the id TOC precedes the Cloak macro with the id TOC. The Cloak macro is also in the panel, and contains the Table of Contents macro. Thus the Table of Contents macro in the first panel is cloaked.

In the second contents panel, the same Table of Contents macro is not cloaked. It is not possible to cloak a panel.

To enter the macros, type the first few characters and select the macro from the list. When the macro dialog opens, enter the ID and click Save. Refer to the ServiceRocket site for documentation of the Toggle Cloak Exit Disclaimer logo and Cloak Exit Disclaimer logo macros.

The markup for the cloaked contents is shown in the last section on this page.

Contents

Contents

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.

Markup for the cloaked contents

The markup for the cloaked contents follows.

{composition-setup}
cloak.toggle.type = text
cloak.toggle.open=[show]
cloak.toggle.close=[hide]
{composition-setup}
{panel:title=Contents}
{toggle-cloak:id=TOC}
{cloak:id=TOC}
{toc:maxLevel=4|minLevel=1}
{cloak}

 

 

  • No labels