Creating links from one contents file to another
HTML Help provides the capability to link from one contents file to another. This is extremely useful for creating and maintaining modular documentation. Rather than maintaining several versions of a table of contents, you can selectively combine them by linking.
To create a contents file that includes links to other contents files
- Click the Contents tab, and then click .
- Type a name for the heading that will include your contents entries from another help file, and then click OK.
- Right-click the heading, and then click Insert File.
- In the File to include box, type the following syntax:
file name.chm::/contents.hhc
where file name.chm
is the name of the compiled help file and contents.hhc
is the name of the contents file to which you want to link.
Note
- The contents are merged at run time, which is when the compiled help (.chm) file is opened. Because of this, you must always ship the compiled help file whose contents you are merging with your main help file, and they must be stored in the same directory.