Portlet Factory, Version 6.1.2


 

About invoking an HTML template

The default theme for a project provides a convenient way for you to specify HTML template files in your application. HTML template files describe the formatting for all constructs generated by builders in the application. Using a theme, you can control HTML template use at the project level and in individual models. An input (Use Theme) in the following builders lets you invoke HTML template files based on the project default theme.

These builders are used to generate the user interface (UI) in your application. Using the project default theme lets you manage HTML template use for your application UI in a central location. For an individual model, you can override the project default theme by using the Theme builder to specify different HTML templates files that override the defaults.

If you do not use a theme in those builders, use inputs (HTML Template File) to specify HTML template files for different page types. These specifications of HTML templates can be overridden by other builders at any level in the page automation hierarchy of contents, such as a Data Field Modifier or a Data Column Modifier. There is a hierarchy of action associated with the formats: more specific references override more general (global) settings. Thus a Data Field Modifier specification for a Field or Container node overrides the corresponding specification for that construct in the HTML template file.

When a template file is specified for a container, it is also used for all elements within that container, unless it is further overridden at a lower level.

You can also override a template file with the Data Hierarchy Modifier builder. In this case, the override does not affect the containers that were selected. Only new group containers that the builder creates are affected. This is a common reason to use the Data Hierarchy Modifier: so that you can quickly create new groups with an entirely different display style.

Parent topic: Page Automation HTML templates


Library | Support |