HomeOracle Sub-templates and More with Oracle HTML DB
Sub-templates and More with Oracle HTML DB
In this third part of a three-part article covering Oracle HTML DB, you'll learn about sub-template definitions and more. This article is excerpted from the Oracle HTML DB Handbook, written by Lawrence Linnemeyer and Bradley Brown (McGraw-Hill, 2006; ISBN: 0072257687).
The Footer section contains the HTML tags and substitution variables for the Footer section of the HTML document. Generally little is placed in this section. If you want to consistently conclude your page with something, this is where it will go. The following is a listing of code from the Footer section of the template for the page displayed in Figure 6-8.
This example contains several substitution variables. The #IMAGE_PREFIX# variable is used again in specifying the images that make up the solid bar seen across the bottom of the screen in Figure 6-8. Notice that the user and the copyright notice appear to be in the solid bar. The bar is actually made up of the left image and the right image and two <td class=”t1BotbarMiddle”> tags. The class definition gives the table cells the proper background and size to blend seamlessly with the two images.
The last substitution variable is the #FORM_CLOSE# variable. Although Oracle recommends this variable be placed in the Body section, it is acceptable to place it in the Footer section. In fact, this code was clipped from one of the templates that came in the HTML DB repository. If you have a #FORM_OPEN# substitution variable in your template, you must have a #FORM_CLOSE# substitution variable. It simply specifies the position for the HTML form close tag. The only requirement is that it must be placed after the #BODY_BOX# substitution variable.
Default Display Points
The Default Display Points section contains two sections: Breadcrumb Display Point and Sidebar Display Point. Each of these fields allows you to select a position for each element’s default display position. This information is only used by the Create Application Wizard. If the template is used while creating an application that has a breadcrumb menu or a side navigation bar, those elements will be placed in the selected positions.