Converting a Page to a Portal Template You can use an existing standard page

Providing a Standard Look and Feel 12-17

4. In the Layout Appearance section, under the Pages heading, click the link to the

page from which to detach a Portal Template. This opens the page in Edit mode.

5. Click the Page: Properties link in the toolbar at the top of the page.

6. On the resulting page, click the Template tab to bring it forward.

7. Click the Detach from Template link next to the Use Portal Template field.

8. In the confirmation page, click Yes to detach the template.

9. Click OK to return to the page.

12.2.2 Using Portal Templates with Items

You can use Portal Templates for items to control the appearance of items—including supporting content and decoration—when they are accessed through a URL. For example, render item content while maintaining the context of your portal’s look and feel. Use Portal Templates for items with Text items, PLSQL items, URL items, and File items of type texthtml or textplain. Any access rules you define for a Portal Template for items are preserved. When an unauthorized user tries to access an item in the context of a template, an error message is rendered. Users can view an item within the context of its template when one of the following conditions is met: ■ The template is public. ■ The user has at least the View privilege on the template. ■ The user has Manage Template privilege on the page group. This section describes how to create, apply, edit, and detach from a Portal Template for items. It contains the following subsections: ■ Section 12.2.2.1, Creating Portal Templates for Items ■ Section 12.2.2.2, Applying Portal Templates for Items ■ Section 12.2.2.3, Calling a Portal Template for Items at Runtime ■ Section 12.2.2.4, Editing Portal Templates for Items ■ Section 12.2.2.5, Detaching a Portal Template for Items For information on parameter passing and Portal Templates for items, see Section 22.6.1, Defining Parameter Values for Items Displayed on a Portal Template . For information on securing Portal Templates for items, see Section 17.11, Granting Privileges on Portal Templates .

12.2.2.1 Creating Portal Templates for Items

Portal Templates for items enable page designers to create a template that defines layout, font, color, and auxiliary content in addition to a placeholder that is replaced dynamically with the content of the requested item. You can select default content for the item placeholder to display in the event that the target content should lose its Note: If you do not see the Detach from Template link, the page does not use a template. 12-18 Oracle Fusion Middleware Users Guide for Oracle Portal context, such as when a user navigates away from the item content, then navigates back to it. When users click a tab on a Portal Template for items, the tab URL displaces the item URL and item content is not preserved. This means that users switching between tabs on a page assembled from an item template, may lose the context of the item whose URL rendered the item template. In such a case, users are likely to see the default placeholder item in lieu of the item that originally invoked the template. One way to circumvent confusing, though logical, situations like this is to keep item templates as simple as possible, with minimal in-page navigation. That is, with few if any tabs and sub-tabs. Whenever you place an item placeholder on a Portal Template, it becomes a Portal Template for items. This is true even when the item placeholder is in a non-active state, such as Draft, Pending, Rejected, Hidden, Expired, and so on. Note, however, that when the item placeholder is not in an active state, its default content or the content that replaces it when an item is rendered does not display. To create a Portal Template for items: 1. Log in to Oracle Portal.

2. Click the Build tab to bring it forward.