Changing the table of contents
Help topics are established in the table of contents by the title.js file in the <document root>\wwhdata\js\ directory for each help topic. For example, the title.js file for the using-dk document root looks like the following code:
method WWHBookData_Title()
{
return "Using Actuate BIRT Java Components";
}
This code indicates that the table of contents text for this help topic is Using Actuate BIRT Java Components. Figure 10-7 shows the hierarchy produced by the code above.
Figure 10-7  
The table of contents displays nested help topics as listed in the toc.js file located in the <document root>\wwhdata\js directory. The toc.js file also controls the following items:
*
*
*
For example, part of table of contents entry for the Using Actuate BIRT Java Components chapter in the toc.js file for the using-dk document root looks like the following code:
var A=P.fN("Introducing Actuate Java Components","1");
var B=A.fN("Using Actuate Java Components","2");
B=A.fN("About Actuate Deployment Kits","3");
A=P.fN("Managing files and folders","4");
B=A.fN("Getting started with Actuate Java Components","5");
var C=B.fN("Navigating BIRT Deployment Kit","6");
C=B.fN("About the banner","7");
C=B.fN("About the side menu","8");
...
var D=C.fN("How to delete a file","15");
B=A.fN("Using filters","16");
C=B.fN("Enabling the filter option","17");
...
B=A.fN("Setting your locale","21");
C=B.fN("How to set a locale","21#661087");
This code establishes the following structure:
*
The top-level entry, A, is file ''1''. File 1 is in position 1 of the internal file array established by files.js. For example, in the using-dk document root, this file is DKusing.
*
Entries are created to reside in the next level under the top-level entry using the variable B. Entries in the third level of the table of contents are created using the variable C, and in the fourth level using the variable D. The entries link to file or anchors within a file referenced by the internal file array number. For example, ''21#661087'' links to the <a name=''661087''> anchor in file ''21'' of the file array, DKmanaging-reports.3.18.html.
*
The text that appears in the table of contents for each entry is explicitly defined. For example, the text for the top-level entry is ''Using Actuate BIRT Java Components''.
Figure 10-8 shows the hierarchy produced by this code.
Figure 10-8  

Additional Links:

Copyright Actuate Corporation 2012