{scrollbar:icons=false} h1. Hiding information on a long page, so readers can view it only as needed The Cloak macro may be used in conjunction with the Toggle-cloak macro to show and hide blocks of content. In this example, the Toc macro in the first panel is cloaked. In the second contents panel, the contents are not cloaked. It is not possible to cloak a panel. The markup for the cloaked contents is shown in the last section on this page. {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=2} {cloak} {panel} {panel:title=Contents} {toc:maxLevel=4|minLevel=2} {panel} h2. First heading Some text. h3. First subheading Some text. h3. Second subheading Some text. h2. Second and last heading The markup for the cloaked contents follows. {code} {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} {code} {scrollbar:icons=false} |