Next Previous Up Top Contents Index

WebMaker User Guide

12.5.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:

The topmost heading of the FrameMaker document (that is, the title of the printed document) may not be the first paragraph of the document.
The FrameMaker document may not necessarily contain a topmost heading.

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());
            }
}