Oracle
  Home arrow Oracle arrow Focusing on Templates in Oracle HTML D...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ORACLE

Focusing on Templates in Oracle HTML DB
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2007-04-05

    Table of Contents:
  • Focusing on Templates in Oracle HTML DB
  • Common Template Sections
  • Header/Body/Footer Definitions
  • Body Section

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    TestComplete™ automates software testing for a fraction of what the big guys charge. Easy functional and load testing for all Windows, .NET, Java and Web apps. Download a free trial now.

    Focusing on Templates in Oracle HTML DB
    (Page 1 of 4 )

    In this second part of a three-part article covering Oracle HTML DB, you'll learn about common template sections and more. This article is excerpted from the Oracle HTML DB Handbook, written by Lawrence Linnemeyer and Bradley Brown (McGraw-Hill, 2006; ISBN: 0072257687).

    Using Substitution Variables

    HTML DB utilizes four different syntaxes for accessing different types of variables throughout the HTML DB application. The following table shows the different syntaxes.

     

     

     

     

    Syntax Usage
    #VARIABLENAME# For system-defined substitution variables such as those used in templates.
    &VARIABLENAME.

    For global application variables, session variables, and page items (note the trailing period)

    v
    (‘VARIABLENAME’)

    For use in PL/SQL for character-type variables, including session variables and page items

    nv
    (‘VARIABLENAME’)

    For use in PL/SQL for number-type variables, including session variables and page items.

    :VariableName

    Bind variable syntax also used in PL/SQL to refer to global application variables, session variables, and page items.

    Substitution variables are used in template definitions as placeholders for values that will be filled when the page is generated. HTML DB has a large number of predefined substitution variables that are used in template definitions. Those used in template definitions always start and end with the pound symbol (#). For example, #TITLE# is the substitution variable that will be replaced with the page title that is defined when a page is created. Each type of template has a number of substitution variables predefined for use with the template. The best way to know what variables are available for a particular section of a template and which ones are required for that section is to click on the section title to access the help text for that section.

    TIP

    Utilize HTML DB’s extensive built-in context-sensitive help, available by clicking on most item’s labels.

    A complete list and description of each of the substitution variables available for each type of template can be found in HTML DB’s online help, accessible from the Help icon located in the upper-right corner of each page. Once you open Help to the contents page, select the Customizing Templates link under the Controlling Page Layout and User Interface section. Near the top of the page is a list of links that will take you to a section for each of the different types of templates. Each section lists the substitution variables and a brief description of the template’s major sections.

    Page Template

    In this section, we will look at the details in a Page template to see how the template works with substitution variables and where those substitution variables tie back to what was specified when the pages were created.

    The Edit Page Template screen contains 12 sections. Several of these sections are common to all or most of the other template-editing pages. We will address those sections before moving on to the page-specific ones. Navigate to an edit template screen by clicking on the name of the template from the list on the Templates page, as shown earlier in Figure 6-4.

    More Oracle Articles
    More By McGraw-Hill/Osborne


       · This article is an excerpt from the book "Oracle HTML DB Handbook," published by...
     

    Buy this book now. This article is excerpted from the Oracle HTML DB Handbook, written by Lawrence Linnemeyer and Bradley Brown (McGraw-Hill, 2006; ISBN: 0072257687). Check it out today at your favorite bookstore. Buy this book now.

       

    ORACLE ARTICLES

    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...
    - Sub-templates and More with Oracle HTML DB
    - Focusing on Templates in Oracle HTML DB




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway