16.9.2 Setting up expandable sections for your document

To enable expandable drop-down sections in the HTML output from your DITA document:

[DropDowns]
; UseDropDowns = No (default) or Yes (enable use of dropdowns)
UseDropDowns = Yes

Simple drop-down sections

To provide simple drop-down sections:

For example, suppose you apply @outputclass="ExpandThis" to each paragraph to be expanded. You would include the following setting in your project configuration file:

[HTMLParaStyles]
ExpandThis = DropDown

With this setting, DITA2Go would insert a drop-down link in HTML output just before each ExpandThis paragraph, and hide the paragraph when a user first displays the topic. The user clicks the link to show the paragraph; then clicks the link again (or clicks the paragraph) to hide it again.

Multiple drop-down paragraphs

To include multiple paragraphs in an expandable section, or to include material in some other format, surround the material to be expanded with Code PI markers in otherwise empty paragraphs; see §16.9.3 Delimiting expandable drop-down sections.

Customized drop-down section

To position drop-down links yourself, or to use existing text in your document for the links, or both:

Previous Topic:  16.9.1 Understanding DITA2Go expandable drop-down sections

Next Topic:  16.9.3 Delimiting expandable drop-down sections

Parent Topic:  16.9 Including expandable sections in Help topics

Sibling Topics:

16.9.1 Understanding DITA2Go expandable drop-down sections

16.9.3 Delimiting expandable drop-down sections

16.9.4 Configuring drop-down links

16.9.5 Configuring drop-down blocks

16.9.6 Providing CSS for drop-down links and blocks

16.9.7 Deploying JavaScript code for drop-down sections

16.9.8 Emulating Web Works Publisher drop-down hotspots

Table of ContentsIndex