Oracle
  Home arrow Oracle arrow Page 3 - Working with Themes and Templates
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 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? 
Google.com  
ORACLE

Working with Themes and Templates
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 3
    2007-03-29


    Table of Contents:
  • Working with Themes and Templates
  • Switching an Application’s Theme
  • Templates
  • Editing an Existing Template

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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


    Working with Themes and Templates - Templates
    ( Page 3 of 4 )

    HTML DB uses templates to control the look and feel of an application. Templates are made up of HTML code and substitution variables. At run time, the HTML DB engine uses information from your object definitions to dynamically fill in information for the substitution variables and create the final HTML pages. The large number of template types available allows you to precisely control the way your application looks while centralizing the administration of the look and feel.

    Template Types

    HTML DB has nine different types of templates, as listed in the introduction of this chapter. The templates apply to all different types of objects. Objects that use templates go from more general type objects, like pages and regions, to more specific type objects, like lists and buttons.

    Page Templates

    Page templates control the look and feel of common items on a page, such as headers, footers, parent tabs, standard tabs, and navigation bars. As shown in Figure 6-3, a typical application needs three different page templates: Page, Error Page, and Printer Friendly Page. Although it is possible to use only one page template for an entire application, a more professional look and feel can be accomplished with a variety of templates.

    Region Templates

    Region templates control the look and feel of regions within a page. They control items such as region borders, titles, and the placement of buttons.

    Report Templates

    Report templates format the results of a database query. They control the look of headers and rows. Conditional row formatting can be used to dynamically change the look of a row based on the row’s content and whether it is an odd or even row.

    List Templates

    List templates control the look and feel of a shared group of links. You can control before and after list formatting as well as current and noncurrent link formatting.

    Label Templates

    Label templates control the look and feel of item labels. Typically label templates are used to distinguish between required and nonrequired fields.

    Calendar Templates

    Calendar templates control the look and feel as well as the placement of a calendar. They are typically made from an HTML table to control the placement of dates.

    Menu Templates

    Menu templates control the look and feel of menus. Menu templates are selected for creating a menu-type region.

    Button Templates

    Button templates are used to control the appearance of buttons. Buttons can be created using multiple images or with HTML. The use of templates is optional for buttons.

    Popup LOV Templates

    Popup LOV templates are used to control the look and feel of items of type POPUP. Only one Popup LOV template can be specified for an application; therefore, it is the only template type for which a developer does not specify a default.

    Managing Templates

    Templates are managed from the Templates page. To get to the Templates page, click on the magnifying glass icon in the View column on the Themes page. The Templates page allows you to see all templates for all themes within your application. The selection boxes at the top of the page, as shown in Figure 6-4, allow you to limit the templates displayed by selecting a theme, a template type, and whether the template is referenced in your application. This page tells you a lot about your templates, such as which ones are the defaults, how many references there are to a template, and whether the template is subscribed to a master template. From this page, you can also create a new template, edit any existing template, and even do a mass replacement of templates from another application.



     
     
    >>> More Oracle Articles          >>> More By McGraw-Hill/Osborne
     

       

    ORACLE ARTICLES

    - Oracle's Turn to Play in the Sun
    - Implementing and Using Oracle`s Restore Poin...
    - 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...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek