Sharing a Style Across Page Groups

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: Working with Colors and Fonts 11-31 ■ When None is applied to a hyperlink, the way the hyperlink is displayed is determined by a users browser settings. That is, it displays as either plain or underlined according to how the users browser is configured. ■ When Plain is applied to a hyperlink, the hyperlink is always displayed as Plain not underlined, no matter what the settings in the users browser. When I logged in today, all the colors and fonts were changed on my page. If the page is based on a template, it probably uses the template’s style selection. Whenever a template’s style selection is changed, all the styles on all the pages that are based on the template also change. This is true unless the template allows pages based on it to use their own style. In such cases, changes to the template style selection do not affect pages that are based on the template. I cannot apply styles to my regions; the Styles tab does not display on the Edit Region page. Is the region a portlet region? Portlet regions cannot have their own style. It might also be privilege-related. It is not enough to have the page privilege Manage, the page group option Allow Privileged Users to Manage Styles must also be selected for you to be able to change region styles. Ask your page group or portal administrator either to select this option for the page group, or to grant you a higher level of privilege, for example, the page group privilege Manage Styles. My page portlet is using the style of the target page rather than the style of its source page, as I have specified. Page portlets always take their header and border colors from the page on which they are placed. This is because the display of headers and borders is controlled at the region level, rather than from any values set for the source page’s style. One way around this is to edit the region in which the page portlet is placed and turn off the display of portlet headers and borders. If the page portlet contains its own portlets, you must also turn off the display of headers and borders for regions on the page portlet’s source page. For information on turning off region headers and borders, see Section 10.2.12, Displaying or Hiding Portlet Headers and Borders . Portlet background colors usually are specified by the style that is applied to the page on which the portlets are placed. With a page portlet, there is a way to display the source page’s background color. Edit the style that is applied to the page on which the page portlet is placed the target page. For the style element Portlet Body Color, remove the value from the Background Color field, and click Apply. The background color specified for the page portlet’s source page that is, Background Color property of the Common style element displays. To illustrate this for yourself, create a page named Source and a page named Target. Create a Source Style for the Source page and a Target Style for the Target page. Set all the color values for Source Style to the red end of the color palette. Set all the color values for Target Style to the blue end of the color palette. Tip: When you edit styles, a quick way to move from style element property to style element property is to click the style element property in the Preview section of the Edit Style page. This selects the style element property and displays all of its values for editing