HTML Page Skins What Are HTML Templates?

Providing a Standard Look and Feel 12-11

12.2 Working with Portal Templates for Pages and Items

Use Portal Templates for pages and Portal Templates for items when you want your pages to display consistent layout, font, color, and auxiliary content when viewing a page or an item. This section provides information on using both types of Portal Templates. It includes the following subsections: ■ Section 12.2.1, Using Portal Templates with Pages ■ Section 12.2.2, Using Portal Templates with Items ■ Section 12.2.3, Copying a Portal Template ■ Section 12.2.4, Editing Portal Template Properties

12.2.1 Using Portal Templates with Pages

Portal Templates for pages enable you to enforce a standard look and feel on your portal pages. Keep in mind that a Portal Template for pages is rigorous in enforcing the layout, look, and feel it provides. For example, in most cases, you cannot add new regions to pages that are based on Portal Templates. Be sure the template contains the regions your content providers will require. There’s one exception to the no new regions rule. If the template includes a tab, users with edit or personalization privileges on a page can add more tabs on pages that are based on the template. Then they can create additional regions on the new tabs. Additionally, you can allow or prevent privileged users from applying a page style other than the one provided by the template. You can lock template regions to prevent anyone from adding content to those regions. And you can allow or prevent privileged users from defining page access rules other than those defined for the template. Use Portal Templates for pages on navigation pages, standard pages, or custom page types that are based on the standard page type. This section provides information on how to create, apply, edit, and detach Portal Templates for pages. It includes the following subsections: ■ Section 12.2.1.1, Creating a Portal Template for Pages ■ Section 12.2.1.2, Applying Portal Templates for Pages ■ Section 12.2.1.3, Editing Portal Templates for Pages ■ Section 12.2.1.4, Detaching a Portal Template from a Page

12.2.1.1 Creating a Portal Template for Pages

There are two methods for creating a Portal Template for pages: ■ Section 12.2.1.1.1, Creating a Portal Template for Pages Using a Wizard ■ Section 12.2.1.1.2, Converting a Page to a Portal Template

12.2.1.1.1 Creating a Portal Template for Pages Using a Wizard The template creation

wizard provides an easy-to-use interface for defining the underlying structure of your Portal Template. Use the template creation wizard to: ■ Specify whether the template should be available immediately or remain unpublished until it is complete 12-12 Oracle Fusion Middleware Users Guide for Oracle Portal ■ Select the style that will define its colors, fonts, and background images ■ Specify access rules that will define which users can access the pages that are based on the template During the process of creating a template, you are given the opportunity to select a navigation page banner for the top of your template and a style to specify the fonts, colors, and background image to apply to the template. Before you create a template, the navigation page and style you plan to use should already be created and available for selection. For information on defining a style, see Chapter 11, Working with Colors and Fonts . For information on creating a navigation page, see Chapter 13, Designing Your Portal’s Navigation . You can use Portal Templates for pages on navigation pages, standard pages, or custom page types that are based on the standard page type. To create a Portal Template with the template creation wizard: 1. Log in to Oracle Portal.

2. Click the Build tab to bring it forward.

3. From the Page Groups portlet Work In drop-down list, select a page to own the

template. The default location of the Page Groups portlet is on the Build tab of the Portal Builder page. If you plan to use this template across multiple page groups, select the Shared Objects page group. Templates in the Shared Objects page group can be shared across page groups. Templates in any other page group can be used only within their page group.

4. In the Layout Appearance section, click the Create link next to the Portal

Templates heading. This opens the template creation wizard.

5. In the Display Name field, enter a Display Name for the template.

Use up to 256 characters of any kind. The Display Name identifies the template in the Page Groups portlet, the Portal Navigator, and the various template pick lists.

6. Select Make available for use in this page group if you want the template to be

immediately available for use in its page group. Selecting this option adds this template’s display name to the Portal Template pick list on the Template tab in page properties. Users with a sufficient privilege level on the page will be able to see and select this template. Consider clearing this check box while you develop the template to prevent other users from selecting it until it is complete. The template name displays in the Page Groups portlet so that you can continue to access it easily to continue its development. But it does not appear on the template pick list on the page properties Template tab. Consequently, it cannot be applied to a page. Note: In the Oracle Portal user interface, fields that require a value are marked with an asterisk . Note: Selecting this check box also allows all users to view the template. However it does not affect the security of pages based on the template.