Page Layout Library
Using RADpage a page layout can be defined once and be used for several pages. Upon page creation or import RADpage asks the user select a page layout for this page. Per default RADpage includes three page layouts:
More layouts can be created using the Import Layout function (File menu of RADpage) or by programming a layout in heitml with a text editor. The Import Layout function of RADpage turns an HTML page (created with an HTML editor for example) into a page layout. The HTML page should contain the word pagebody to indicate the position where the page body is inserted. The HTML page can also contain the word outlinemnu to indicate the position for the outline menu.
Usually page layout files are contained in a subdirectory named layout. Each page must contain exactly one include tag for a page layout file.
Page layout files can be created by extending one of the imported or example layout files. deflayout is a plain layout, outlayout includes an outline menu, demolayout a colored menu and trylayout (in the try directory) is the layout used for the example pages.
Technically an outline file must at least contain one definition that redefines the HTML-body tag. This way a layout can predefine attributes of the body tag (like bgcolor) and can add headers, footers, or menues to a page. In any case, the redefined body tag should call the _body tag of layoutlib.hei to finally print the body tag and the _innerbody tag that should directly contain the page text.
Layout Components and Tags
< _body p ... > ... </_body>
The <_body> environment should be called inside a page layout file inside the redefinition of the body tag. Parameter p must be a tuple containing the parameters of the original body tag. Additional parameters can be given and act as default value.
< bodyevent name />
< _innerbody > ... </_innerbody>
should be wrapped directly around the defbody of the redefined body tag. It uses <stdloc> to define locations bgtext and endtext for the begin and the end of the document text. It is also required to initialize proper functioning of RADpage.
© 1996-2022 H.E.I. All Rights Reserved.