Next Previous Up Top Contents Index

WebMaker User Guide

12.5.3 Nodes triggered by a heading paragraph

How can a node type be described such that it will contain:

1. An HTML TITLE that is the same as the heading paragraph that triggered the node.
2. A navigation panel containing links to next and previous nodes, to appear both at the beginning and the end of the node.
3. The heading of the upper section to appear at the beginning of the node.
4. A local table of contents of the sections that are up to two levels lower, and specified at the end of the node.
5. A signature to appear at the end of the node.

This is done by:

NODE BasicSection
{
  TITLE headingtext(current)
  HEADER
    {
      @NavigationPanel=concatenate(
                   button("[Next] ",filename(next)),
                   button("[Prev] ",filename(previous)));
      write(*,paragraph(@NavigationPanel));
      write(*,paragraph(headingtext(up)));
    }
  FOOTER
    {
      write(*,toc(2,local));
      write(*,address(concatenate("MR - ",date())));
      write(*,paragraph(@NavigationPanel));
    }
}