Next Previous Up Top Contents Index

WebMaker User Guide

12.10 List of figures or tables in WML

It is possible to create customized WML that will create a mapped list of figures or a mapped list of tables using the same model as the mapped table of contents. For examples of rules for these kinds of lists, see the contents.wml library file.

The first requirement is that the FrameMaker document itself contains a list of figures (or a list of tables). You must be sure that the Generate Hypertext Links option is checked when you create the list.

Next, copy the contents.wml library file to another filename, such as LOF.wml. You can edit the TOC-Entry rules to be LOF-Entry rules, by changing their names and the value of FILENAMEKEY such as:

PARAGRAPH "LOF-Entry-1" TYPE List 
{
  FILENAMEKEY LOF
  LEVEL 1
  KIND Glossary
  ACTIONS
  {
     write(*,glossterm(bold
            (butlast(concatenate(number()," ",text())))));
  }
}

Next, copy either the nodesTI.wml or nodesBTI.wml file to another filename, such as nodes-LOF.wml. You can then add a new button to the navigation panel, such as Figures, which uses the filenamekey LOF. For example, you would modify the FirstPage node as follows:

NODE FirstPage
{
  TITLE maintitle()
  HEADER
  {
    @NavPanel=
      concatenate( 
        button("[Next]", filename(next), "[Next]", 
               class: "NavPanel"),
        " ",
        button("[Contents]",filename(TOC), "[Contents]", 
                class: "NavPanel"),
        " ",
        button("[Figures]",filename(LOF), "[Figures]", 
                class: "NavPanel"),
        " ",
        button("[Index]", filename(INDEX), "[Index]",
                class: "NavPanel"),
        " ");
    write(*,paragraph(@NavPanel));
  }

Lastly, edit the WML file you are using to include LOF.wml and nodes-LOF.wml, and to exclude nodesTI.wml (or nodesBTI.wml).