NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{scrollbar:icons=false}

Page info
title
title

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 Composition Setup macro

...

Code Block
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.

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

In this example, a panel encloses a table of contents which may be hidden or shown. The first macro in the first panel , is the Toggle Cloak macro with the id TOC precedes . Next is 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.

Panel
titleContents

Toggle Cloak
idTOC

Cloak
idTOC
42

To enter the macros, type

  • 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

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.

 

Panel
titleContents

Toggle Cloak
idTOC

Cloak
idTOC
42
Panel
titleContents
Table of Contents
maxLevel4
minLevel2

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.

Markup for the cloaked contents

The markup for the cloaked contents follows.

...

text

...

.

...