Publishing a Style to Other Users

11-30 Oracle Fusion Middleware Users Guide for Oracle Portal ■ Set all the pages that will use Oracle Portal style element classes to Main style. Many of Oracle Portal’s style element classes use the variables idn and siteidnn. The idn variable refers to the identity of the style being used. The siteidnn variable refers to the page group that owns the style. With the Main style, which is owned by the Shared Objects page group, the values of these variables are fixed—and therefore predictable: id1siteid0. One way to ensure that all new pages in a page group use the Main style is to set Main as the page group’s default style, then select the page group configuration option Use Default Properties When Creating Page. For information on setting this option, see Section 4.5.2, Specifying Inheritance Rules for Newly Created Pages . For information on selecting a default style for a page group, see Section 4.5.3, Choosing a Default Style for a Page Group . For information on selecting a style for a page, see Section 11.8, Applying a Style . You may want to take the further step of prohibiting users from changing page styles. To do this, edit the relevant page group’s properties, deselecting Allow Privileged Users To Manage Page Style . For more information, see Section 4.3.2, Controlling Who Can Apply a Different Style to a Page . ■ Create a CSS that includes Oracle Portal style element classes, which you can define according to your own style specifications. Or embed Oracle Portal style element classes in your HTML template see next bullet. For a list and description of Oracle Portal style element classes, see Section E.2, Style Element Classes Used with Oracle Portal Styles . ■ Create an HTML template that calls the CSS or that includes Oracle Portal style element classes. In the template, do not use the page.style tag. The page.style tag includes Oracle Portal style element classes in the template. This could result in conflict caused by two classes having the same name. For information on creating HTML templates, see Chapter 12, Providing a Standard Look and Feel . ■ Apply the HTML template to your portal pages. For information on applying HTML templates, see Chapter 12, Providing a Standard Look and Feel .

11.13 Troubleshooting Styles

When I create a page, I am not given the option to select a style for the page. If the page is based on a Portal Template that does not allow privileged users to choose their own page style, the style selection screen does not display when you create a page, and the Style tab does not display when you edit a page. If you have sufficient access to the template, you can edit the template and select Enable Pages To Use Different Style on the Style tab of template properties. Once this setting is selected, the Style tab displays in page properties. Another possibility is that the page group that owns the page is not configured to allow privileged users to manage a page style. This option is available on the Main tab of page group properties. It must be selected for users to select a style for any pages in the page group. How do I control the appearance of hyperlinks in, for example, text items? The Plain and None selections provide the same effect for most item types. However, when applied to items displayed as hyperlinks, they behave differently: