Portal Templates for Items

12-8 Oracle Fusion Middleware Users Guide for Oracle Portal Figure 12–5 HTML Page Skin With HTML page skins, you define where the body area of the page will be. The body area is where page content will display. You can introduce Oracle Portal elements into your page skin through the use of HTML page skin substitution tags. Use these to introduce such elements as page Edit or Personalize links, the name of the currently logged-in user, the current pages display name, and so on. For a list of HTML page skin substitution tags, including descriptions and examples, see Appendix E, Substitution Tags for HTML and Unstructured UI Templates . You can also use oracleoracle tags to introduce PLSQL elements, such as conditional statements, into your template. Create an HTML page skin using an Oracle Portal wizard. You can use a third-party HTML editor to create the template HTML, then simply cut and paste your result into the wizard’s HTML code field. For information about creating, applying, editing, or detaching an HTML page skin, see Section 12.3.1, Using HTML to Define a Page Border .

12.1.2.3 HTML Content Layouts

Use HTML content layouts to define a formatting scheme for content within a particular region. Design HTML content layouts for use with item regions, portlet regions, or both. Use HTML to create tables, font designs, colors, and any other mark up or object type you could place in any other HTML template. You can even call a cascading style sheet CSS to apply a standard format that you use in other forms of company documentation. Providing a Standard Look and Feel 12-9 Figure 12–6 HTML Content Layout Use HTML content layout substitution tags to introduce Oracle Portal elements, such as display names, descriptions, categories, perspectives, and so on. For a list of HTML content layout substitution tags, including descriptions and examples, see Appendix E, Substitution Tags for HTML and Unstructured UI Templates . You can also use oracleoracle tags to introduce PLSQL elements, such as conditional statements, into your template. Create your HTML content layout using the Oracle Portal wizard. You can use a third-party HTML editor to create the template HTML, then simply cut and paste your result into the wizard’s HTML code field. For information on creating, applying, editing, or detaching an HTML content layout, see Section 12.3.2, Using HTML to Define the Layout and Appearance of Region Content . Note: The HTML content layout repeats itself for each portlet or item in the region. Consider carefully before using a CSS in the content layout. The CSS is repeated as many times as the number of items in the region. For additional information on Oracle Portal and cascading style sheets, see Section 11.12, Using Portal Style Element Classes in HTML Templates and CSSs . 12-10 Oracle Fusion Middleware Users Guide for Oracle Portal

12.1.3 Comparing Template Types

Table 12–1 provides a concise description of where in the Oracle Portal user interface you can apply each type of template and a brief summary of the conditions governing the use of each type. Table 12–1 Comparison of Template Types Type Where to Apply Conditions Governing Use Portal Templates for Pages ■ Select a default template for the page group on the Configure tab of page group properties. ■ Select a template for a page on the Template tab of page properties. The default template you select at the page group level is applied to sub-pages in the page group only if page designers do not explicitly select a template when they create pages. Additionally, the page group setting Use Default Properties When Creating Page on the Configure tab of page group properties, under Page Defaults must be selected. If it is not selected, sub-pages inherit whatever template is specified for the parent pages page properties, rather than from page group properties. Use Portal Templates for pages on navigation pages, standard pages, or custom page types that are based on the standard page type. Portal Templates for Items Select a Portal Template for items on the Items tab of page properties but see Conditions Governing Use. ■ For this feature to be available, a Portal Template for items must be defined for the page group that owns the current page or for the Shared Objects page group. ■ For the template to be a Portal Template for items, it must contain an item placeholder-type item. ■ Default content for the item placeholder can be a file or a text item type. Files can contain either text or HTML. HTML Page Skins ■ Select a default template for the page group on the Configure tab of page group properties. ■ Select an HTML Page Skin for a page on the Template tab of page properties The option to use a page skin is selectable on a page’s Template tab only when at least one page skin is defined in the page group or the Shared Objects page group. HTML Content Layouts To select an HTML Content Layout: 1. Edit a portlet or item region. 2. Go to the Attributes tab. 3. Select the Use HTML Content Layout radio button. 4. Select a content layout template. The option to use a content layout is selectable on the Attributes tab only when at least one content layout is defined in the page group or the Shared Objects page group. Note: When a page group and the Shared Objects page group both have a template of the same name, the page group name is added to the template name in pick lists. For example: template_name page_group_name. This assists in distinguishing between templates on pick lists.