
10 WebMaker Language (WML)
To trigger an external table of contents, the FrameMaker document must include a single use of a FrameMaker paragraph tag, such as: WWW-TOC. The node type dedicated for this use needs to be specified because:
toc(depth, scope) needs to be called with <depth> as maximum and <scope> as global. This is normally not desirable in any other node of the generated web.
FILENAMEKEY for the node of the external TOC, which in turn provides a mechanism to be able to point to this node from anywhere else in the generated web, such as in the navigation panel of other nodes.
FILENAMEKEY for the HTML file of the external TOC.
NODE ExternalTOC
{
TITLE concatenate(maintitle()," - TOC")
HEADER { ... }
FOOTER { write(*,toc(4,global)) }
... }
}
PARAGRAPH "TOCChapter" TYPE Heading
{ NEWNODE ExternalTOC
FILENAMEKEY exttoc
LEVEL 1
ACTIONS { write(*,heading(1,text()));
write(*,hrule()); }
}
The external table of contents may then be pointed to by the use of the function filename(node) by supplying the specified FILENAMEKEY as parameter, such as:
...
write(*,button("[Contents]",filename(exttoc)));
...

Generated with Harlequin WebMaker