Chapter 9 Changing Desktop Colors
This chapter describes how to change the color for various Desktop components,
such as header, footer, font color in the header and footer, and so on. This chapter
contains the following:
Changing Desktop Colors
Most of these colors are part of the global theme attributes. See Sun Java System Portal Server 6
2005Q4 Tecchnical Reference Guide for more information.
To Change the Desktop Colors
Steps
-
Use the following table to determine what you want to change and what
file you need to change. This two column table lists the Desktop component to customize
in the first column, the files to edit in the second column, and the corresponding
theme attribute in the third column.
Desktop Component to Customize
|
File to Edit in PortalServer-DataDir/portals/portal-ID/desktop/default/
|
Theme Attribute
|
Header background color
|
JSP-based containers:
-
./JSPSingleContainerProvider/header.jsp
-
./JSPTabContainer/header.jsp
-
./JSPTableContainerProvider/header.jsp
-
./PredefinedFrontPageFramePanelContainerProvider/header.jsp
-
./PredefinedFrontPageTabPanelContainerProvider/header.jsp
-
./PredefinedSamplesTabPanelContainerProvider/header.jsp
Frame-based containers:
|
brandBgColor
|
Footer background color
|
JSP-based containers:
-
./JSPSingleContainerProvider/menubar.jsp
-
./JSPTabContainer/menubar.jsp
-
./JSPTableContainerProvider/menubar.jsp
-
./PredefinedFrontPageFramePanelContainerProvider/menubar.jsp
-
./PredefinedFrontPageTabPanelContainerProvider/menubar.jsp
-
./PredefinedSamplesTabPanelContainerProvider/menubar.jsp
Frame-based containers:
|
brandBgColor
|
Font color in the header and footer
|
The related JSPs are the header.jsp and menubar.jsp that listed in header background color and footer background color.
|
headerFontColor
|
Selected tab color
|
JSP-based containers:
./JSPTabContainer/selectedTab.jsp
Frame-based containers:
./FrameTabContainer/selectedTab.jsp
|
titleBarColor
|
Content Page color
|
./JSPContentContainer/contentLayoutBar.jsp ./JSPEditContainer/contentLayoutBar.jsp
./JSPLayoutContainer/contentLayoutBar.jsp ./TabJSPEditContainer/contentLayoutBar.jsp
|
(none)
|
Layout Page color
|
./JSPLayoutContainer/layoutedit.jsp
|
(none)
|
Desktop body
|
./JSPTableContainerProvider/tabtable.jsp
|
tableBgColor
|
-
Edit the appropriate file.
In almost all case, make modifications
to the bgcolor=value statement to change the color. In the case
of the font color in the header and footer, change the color inside of the FONT tag for the specific link.
-
In the directory where you make the change, run the following command:
(Or, if you know the parent JSP file, just run the touch command
on that file.)
-
Reload the Desktop.
Changing the Default Color Scheme for an Organization
There are two ways in which to provide a new color scheme and layout for an
organization:
-
Define a new set of templates - You can define a new set of templates
in PortalServer-DataDir/portals/portal-ID/desktop/new/ and make this directory (new) the
Desktop Type attribute for that organization.
-
Define a new theme - In the display profile, you can define your own
theme in the GlobalThemes collection. See Chapter 10, Customizing the Global Themes for more information.