20.4.2 Assigning TOC images and expansion levels in JavaHelp 2

DITA2Go supports several JavaHelp 2 <toc> and <tocitem> attributes that allow you to control which TOC levels are expanded and collapsed, and what images are displayed in the TOC tree.

To set the <tocitem> expand attribute by level, assign Yes (expand) or No (collapse) to each level number:

[TocLevelExpand]
; The JH default is to expand only top-level (1) items; this sets the
; <tocitem> expand attribute according to level.
1 = Yes
2 = No

The JavaHelp default is to expand only top-level (level 1) items.

To designate images to be displayed in the TOC tree, assign an image ID to each different TOC item. For example:

[JavaHelpOptions]
; The JH default is to use the Toc*Image graphics for all levels; this
; replaces those graphics by setting the <tocitem> image attributes.
; The image IDs are mapped in [JHImages] as usual
TocClosedImage = closedsign
TocOpenImage = opensign
TocTopicImage = topicicon

The JavaHelp default is to use the assigned Toc*Image graphics for all TOC levels. However, to use the same graphic for all TOC items at a given level, you can assign an image ID to the level number. For example:

[TocLevelImage]
; The image IDs are mapped in [JHImages]
1=overview

You must map each image ID to the location of its corresponding graphic in section [JHImages]; see §20.8.1.2 Mapping image names to graphics files.

Previous Topic:  20.4.1 Configuring contents entries for JavaHelp or Oracle Help

Next Topic:  20.4.3 Configuring index entries for JavaHelp or Oracle Help

Parent Topic:  20.4 Generating contents and index

Sibling Topics:

20.4.1 Configuring contents entries for JavaHelp or Oracle Help

20.4.3 Configuring index entries for JavaHelp or Oracle Help

20.4.4 Locating JavaHelp or Oracle Help contents and index files

Table of ContentsIndex