Changing Default Templates in a Theme

Previous
Previous
Next
Next

Standard theme contains templates for every type of application component and region type. You can change the selected default templates for a theme on the Define Theme page.

You can override these defaults, by either selecting another template when you create new components or regions, or by changing the template on the component or region attributes page.

To review or change the default templates in a theme:

  1. Navigate to the Themes page:

    1. On the Database Home Page, click the Application Builder icon.

    2. Select an application.

    3. Click Shared Components.

    4. Under User Interface, select Themes.

  2. Access the Details view. From the View list, select Details.

  3. Select the appropriate theme name.

    Create/Edit Theme page appears.

    The top of the page displays the associated application ID and the Theme Identification Number.

  4. To change the theme name, enter a new name in the Name field.

  5. To change a default template, make a new selection from the appropriate list.

Table: Default Templates by Component describes the default templates available under the section Default Templates by Component.

Default Templates by Component

Attribute Description

Page

Identifies the default template for displaying pages. If a developer does not explicitly choose a template, then the Application Express engine uses the template specified here.

Once defined, this default template appears on the Edit Application Attributes page under the heading Application Template Defaults.

See Also: "Display Attributes" for information about overriding the page template on the Page Attributes page

Error Page

Optional. Specifies a page template to use for errors that display on a separate page as opposed to those that display inline. Leave this attribute blank if you do not want to use a template designed to display errors.

Once defined, this default template appears on the Edit Application Attributes page under the heading Application Template Defaults.

Printer Friendly Page

Identifies the template to be used when the Application Express engine is in printer friendly mode. When calling Application Express to render a page, you have the option to identify a printer friendly attribute with values of YES or NO.

If you select YES, then the page displays using a printer friendly template. The Application Express engine displays all text within HTML form fields as text. The printer friendly template does not need to have the #FORM_OPEN# or #FORM_CLOSE# tags. The objective is to be able to display information with few tables and in a format suitable for printing.

Once defined, this default template appears on the Edit Application Attributes page under the heading Application Template Defaults.

See Also: "Optimizing a Page for Printing"

Breadcrumb

Identifies the default breadcrumb template used when you create new breadcrumb.

Button

Identifies the default button template used when creating a new button.

Calendar

Specifies the default calendar template used when you create new calendar.

Label

Identifies the default label template used when you create new label.

List

Specifies the default list template used when you create new list.

Region

Specifies the default region template used when you create new region.

Report

Identifies the default region template used when you create a report.


Table: Region Templates by Region Type describes the default templates available under the section Default Templates by Region Type.

Region Templates by Region Type

Attribute Description

Breadcrumbs

Default region template used when creating a breadcrumb.

Charts

Default chart template used when creating a chart.

Forms

Default form template used when creating a form.

Lists

Default region template used when creating a list.

Reports

Default region template used when creating a report.

Tabular Forms

Default region template used when creating a tabular form.

Wizards

Default region template used when creating a new wizard component.