NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Cloak macro may be used in conjunction with the Toggle-cloak macro to show and hide blocks of content. It 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

Multiexcerpt include
nopaneltrue
MultiExcerptNameExitDisclaimer
PageWithExcerptwikicontent:Exit Disclaimer to Include

In this example, in the first panel, the Toc the Toggle Cloak macro with the id TOC precedes the Cloak macro with the id TOC and the Cloak macro contains the Table of Contents macro. Thus the Table of Contents macro in the first panel is cloaked.

In the second contents panel, the contents are 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

Multiexcerpt include
nopaneltrue
MultiExcerptNameExitDisclaimer
PageWithExcerptwikicontent:Exit Disclaimer to Include
and Cloak
Multiexcerpt include
nopaneltrue
MultiExcerptNameExitDisclaimer
PageWithExcerptwikicontent:Exit Disclaimer to Include
macros.

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

Contents
Composition Setup
cloak.toggle.type = text
cloak.toggle.open=[show]
cloak.toggle.close=[hide]
Panel
title

Toggle Cloak
idTOC

Panel
titleContents
Cloak
idTOC
42
Panel
titleContents
Table of Contents
maxLevel4
minLevel2

...

Code Block
{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}