Sun Java System Portal Server 7.2 Administration Guide

Desktop Design Tool Theme

The Desktop Design Tool Theme:

The Portal Server software includes two themes, default and heavy, that, after deployment, are available at WEB_CONTAINER/portal/desktop/themes/lite and WEB_CONTAINER/portal/desktop/themes/heavy directories respectively. By default, the default theme is used by the sandbox sample portal and the heavy theme is used by the enterprise sample portal.

The theme CSS files are stored either in the Portal web application or individual theme web application in the web container. The file structure in the web application is as follows:

WEB_APPLICATION_BASE_DIR/portal/desktop/themes/THEME_NAME/css/style.css

Stylesheet for the theme

WEB_APPLICATION_BASE_DIR/desktop/themes/THEME_NAME/images/IMAGE_FILES

Image files, used in the stylesheet

WEB_CONTAINER/portal/desktop/themes/THEME_NAME/Template.html

Templates that can be customized (using Dreamweaver) by web designers

WEB_CONTAINER/portal/desktop/themes//js/scripts.js

Javascript


Note –

All Javascript used in the default and heavy themes are located in the WEB_CONTAINER/portal/desktop/themes/js/scripts.js file which also loads WEB_CONTAINER/portal/desktop/themes/js/scripts.js/portalMenuHandler.js file.



Note –

WEB_CONTAINER is /opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/ for solaris and /opt/sun/appserver/domains/domain1/applications/j2ee-modules/ for Linux.


The themes, default and heavy, each have an associated collection in the Display Profile AvailableThemes collection:


<Collection name="AvailableThemes" propagate="false">
	<Collection name="default" propagate="false">
				<String name="contextPath" value="desktop/themes/ lite"/>
		<Boolean name="editable" value="false"/>
		<Boolean name="insidePortalWar" value="true"/>
		<Boolean name="portletControlMenu" value="true"/>
	</Collection>
	<Collection name="heavy" propagate="false">
				<String name="contextPath" value="desktop/themes/ heavy"/>
		<Boolean name="editable" value="false"/>
		<Boolean name="insidePortalWar" value="true"/>
		<Boolean name="portletControlMenu" value="false"/>
	</Collection>
</Collection>