##### 16.9.4.1 Specifying the type of link for drop-down sections

To specify the type of drop-down link to use for an expandable section:

    [DropDowns]
    ; DropLinkType = Icon (default, optional text), Button, or Text (only)
    DropLinkType = Icon

When DropLinkType=Icon, DITA2Go inserts an icon at the start of each drop-down link paragraph. You can specify the graphics to use for icons, and you can modify the alt text; see §16.9.4.2 Configuring icons for drop-down links.

When DropLinkType=Button, DITA2Go inserts a button in each drop-down link paragraph. You can specify the label on the button; see §16.9.4.3 Configuring buttons for drop-down links.

When DropLinkType=Text, the link consists only of text: either default text, or the text of a paragraph or character span in your document; see §16.9.4.4 Configuring text for drop-down links.

Regardless of link type, DITA2Go inserts icon, button, or default text ahead of whatever text is already present in each drop-down link paragraph. If you have not designated a drop-down link paragraph, DITA2Go creates a paragraph for the link, just before each drop-down block.

By default, DITA2Go includes JavaScript code that works for all types of drop-down links. However, you can choose to have DITA2Go include JavaScript code only for the type of link you specify via DropLinkType; this results in slightly less JavaScript code.

To restrict JavaScript drop-down code to the link type specified by DropLinkType:

    [DropDowns]
    ; UseCompositeDropJS = Yes (default, use JS that works for all
    ;  settings of DropLinkType), or No (use JS specific to current
    ;  DropLinkType setting, slightly less JS code)
    UseCompositeDropJS = No

When UseCompositeDropJS=No, all drop-down sections must use the same type of drop-down link, because the type determines the JavaScript that is included or referenced in the output. See §16.9.7 Deploying JavaScript code for drop-down sections.

Previous Topic: 16.9.4 Configuring drop-down links

Next Topic: 16.9.4.2 Configuring icons for drop-down links

Parent Topic: 16.9.4 Configuring drop-down links

Sibling Topics:

16.9.4.2 Configuring icons for drop-down links

16.9.4.3 Configuring buttons for drop-down links

16.9.4.4 Configuring text for drop-down links

16.9.4.5 Modifying code for drop-down links

Table of Contents • Index