16.9.4.2 Configuring icons for drop-down links

When DropLinkType=Icon, each drop-down link starts with an icon. If you provide text content for the link paragraph or character span, the text follows the icon.

DITA2Go can provide a default icon pair: 

Icon

Icon graphic file

Alternate text

 

 

 

dropopen.gif

Click to open.

 

 

 

dropclose.gif

Click to close.

To have DITA2Go write these default icon files to the project directory:

[DropDowns]
; WriteDropIconFiles = No (default) or Yes (write to project directory)
WriteDropIconFiles = Yes

When WriteDropIconFiles=Yes, DITA2Go creates default drop-down icons in the project directory. When WriteDropIconFiles=No, you must provide the icon files. If you want the icons in a directory other than the project directory, perhaps with other graphics, you must place the icon files there yourself, and specify a relative path to their location.

To rename or relocate drop-down icon files:

[DropDowns]
DropOpenIconFile = path/to/dropopen.gif
DropCloseIconFile = path/to/dropclose.gif

The default location is the project directory. If you specify a relative path, it is relative to the project directory. Do not use an absolute path.

To specify different alt text for the icons:

[DropDowns]
DropOpenIconAlt = Click to open.
DropCloseIconAlt = Click to close.

To change the macro code that displays icons, see §16.9.4.5 Modifying code for drop-down links.

Previous Topic:  16.9.4.1 Specifying the type of link for drop-down sections

Next Topic:  16.9.4.3 Configuring buttons for drop-down links

Parent Topic:  16.9.4 Configuring drop-down links

Sibling Topics:

16.9.4.1 Specifying the type of link for drop-down sections

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