SunQuest
 
       Oracle
  Home arrow Oracle arrow Page 4 - 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  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Actuate Whitepapers 
VeriSign Whitepapers 
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? 
ORACLE

Working with Themes and Templates
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 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:
      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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Working with Themes and Templates - Editing an Existing Template


    (Page 4 of 4 )

    To edit any existing template, simply click on the template name from the Templates page. This will take you to a type-specific template edit page. In order to edit templates, you need at least a good working knowledge of HTML. See the following sections for specifics on Page and Report templates. Due to space limitation, we are not able go into complete detail on all nine different types of templates. However, you will come to find that they are very similar when it comes to editing them. With a good working knowledge of HTML, an understanding of the substitution variables, and some hands-on experimentation, you should be able to fully understand each type of template. 


    Figure 6-4.  Templates page

    Creating and Copying Templates

    Like themes, templates can either be created from scratch or copied from another location. With templates, you don’t copy from the HTML DB repository, but rather from other templates in other themes, including themes from other applications. Like with themes, template creation is accomplished through a multiscreen wizard. The first screen allows you to select the type of template you are going to create. On the next screen you choose to create the template either from scratch or as a copy of an existing template.

    If you choose to create the template from scratch, you will be asked to name the template, select the theme it will belong to, and specify the template class. Upon confirmation, a nearly blank template will be created; it will include some very basic HTML along with the minimal substitution variables.

    If you go the route of creating a template as a copy of an existing template, you select the application to copy from and then select the theme to copy from and the theme to copy to. At this point, the wizard will present to you a list of templates from the selected theme that are of the type you chose to copy, as shown in Figure 6-5. For each of the templates listed, you can choose to copy and subscribe, just copy, or not copy. If you subscribe to a template and changes are later made to the master template, you can update the subscribed template by entering the edit template page and clicking on the Refresh Template button found in the Template Subscription section of the edit template page. Be aware that any changes you make to the subscribing template will be lost when you refresh the template.


    Figure 6-5.  Creating templates by copying


    Figure 6-6.  Replacing templates

    There is one other powerful feature available for copying templates. If you have copied templates from another application but did not subscribe when you copied, you can still refresh the template from the original. Actually, you can replace any utilized template in your current application with another template in another application. In the Tasks box on the right side of the Templates page is an option titled “Replace templates in this application with templates from another application.” If you follow this link, you will be asked to select the source application from which you would like to replace templates. You will then be presented with a list of the templates for your current application that are currently being utilized. For each of these templates, you can choose a replacement and select whether to replace or to replace and subscribe, as shown in Figure 6-6.

    Please check back next week for the continuation of this article.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

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

    Buy this book now. This article is excerpted from chapter 6 of 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 6 hosted by Hostway