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

12-16 Oracle Fusion Middleware Users Guide for Oracle Portal ■ Access —Define who can access pages based on the template and what level of control they have over those pages. A Portal Template can also enforce access for a page. Clear Enable Pages to Have Different Access to prevent users from choosing different access contol settings when they create or edit pages that are based on this template. Such pages will always use the template access control settings and the Access tab will not be displayed in the page properties tab set. Select this check box to enable users to choose different access control settings. ■ Items —Specify the item versioning level and default region for placing content. ■ Optional —Select an HTML page skin. For more information, see Section 12.1.2, What Are HTML Templates?. ■ Parameters —Set up page parameters. For more information, see Chapter 22, Using Parameters and Events. ■ Events —Set up page events. For more information, see Chapter 22, Using Parameters and Events.

8. Click the OK when you are done.

When you edit a page that is based on the template, you can also click the Edit Template link in the toolbar at the top of the page to enter Template Edit mode.

12.2.1.4 Detaching a Portal Template from a Page

If you will no longer use a Portal Template for a particular page, you can detach the template from the page. When you detach a Portal Template from a page, the page retains the same layout and content that was provided by the template, but the page now owns it. Any changes made to the template no longer affect the page. If you have a sufficient level of privilege, you will now be able to change the layout of the page and add content to any region. To detach a Portal Template from a page: 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 the page group that

owns the page from which to detach a template. By default, the Page Groups portlet is located on the Build tab of the Portal Builder page. Note: When you base a page on the template, it will initially use the template’s style. The page will continue to use the template’s style even when you enable pages based on the template to have their own style selections. Every time you update the style for the template, the style for the pages based on the template will also be updated. This relationship continues until you select a different style for the page. Note: For more information on security features in Oracle Portal, see Chapter 17, Protecting Your Content . 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.