10.4 WML node rules

10.4.4 The first page of the generated web

The entry page of a generated web is treated as a special case for the following reasons:

To guarantee the generation of the entry page, including a user-specified HTML TITLE, WebMaker requires the following:

webmaker ... -t "The Title of the first page" ...
This string may be accessed in the configuration by calling the predefined function:

maintitle()
The following excerpt from a WML configuration file describes an entry page for a generated web and the conversion rules for the paragraph of the topmost heading.

NODE FirstPage
{
  TITLE maintitle()
  HEADER
    {
      @NavigationPanel=concatenate(button("[Next] ",filename(next)));
      write(*,paragraph(@NavigationPanel));
    }
  FOOTER
    {
      write(*,heading(2,"Table of contents"));
      write(*,toc(1));
      write(*,hrule());
      write(*,address(concatenate("MR - ",date())));
      write(*,paragraph(@NavigationPanel));
    }
} 
PARAGRAPH "Title" TYPE Normal
{
  ACTIONS  {
              write(*,heading(1,text()));
              write(*,hrule());
            }
}

WebMaker User Guide - 27 SEP 1995

Generated with Harlequin WebMaker