Location of theme resources


Overview

Theme resources can be either dynamic J2EE resources or static resources, such as HTML, CSS, JavaScript, and image files.

The theme has two types of resoursces:

In a default portal installation, the content stored in WebDAV consists of static resources, such the theme, skin, and layout templates, as well as CSS, images, and JavaScript. The dynamic resources, such as JSPs are deployed in a WAR file. They are used by dynamic content spots within the theme and skin templates.

Do not edit any of the themes provided with WebSphere Portal, as they are updated by WebSphere Portal fixes and are static. Instead, update and deploy own copy of the theme WAR in WAS.


J2EE resources

Theme J2EE resources are deployed at installation to the directory...

In the past themes were also deployed to...

These types of themes are still supported, and can be deployed through the dmgr console

Note that PORTAL_HOME is a read only directory. Do not make any changes to these files, as they can be updated by service updates. Instead, if you want to customize a theme shipped with Portal, deploy own copy of the theme WAR in WAS.

When you deploy theme in its own WAR file, the resources are deployed to the portal profile directory...


Static resources

In earlier portal versions themes deployed their static resources with their WAR file. With the page builder theme in portal v7.and later versions, static resources are deployed to WebDAV. You can access all WebDAV file store entry points listed below through the root URL...


Administration entry points

/themelist/ Administrative entry point for managing themes.
/skinlist/ Administrative entry point for managing skins.


File store entry points

/fs-type1/skins/ Entry point for creating, updating, or deleting static skin HTML, JavaScript, and image resources. /fs-type1/layout-templates/ Entry point for creating, updating, or deleting static layout templates. /fs-type1/common-resources/ Entry point for common static resources that are shared by multiple themes.

You can access all WebDAV entry points listed above through the root WebDAV entry point URL. This URL is http://hostname:port/wps/mycontenthandler/dav/entrypoint/. For more details refer to the topics about Working with static themes.


Dojo and other JavaScript resources

Dojo is deployed to the directory PORTAL_HOME/theme/wp.theme.dojo/installedApps/dojo.ear/dojo.war/. Multiple versions of dojo are provided here to support migrated themes that were implemented for a particular version of dojo. Dojo V 1.3.2 is provided in the root directory of dojo.war. Dojo V 1.4.3 and future versions are provided in a subdirectory named by the version, for example /v1.4.3/.


Source

The Dojo 1.4.3 source including all custom Page builder JavaScript and widgets is included in a compressed .zip file. The location of this file is: PORTAL_HOME/theme/wp.theme.dojo/installedApps/dojo.ear/dojo.war/source.zip . This zip file includes the Dojo profile with which the theme JavaScript layers are built. It is named portal_dojo_143.profile.js . Use this source and Dojo profile to create new custom layers. If you add a significant amount of custom JavaScript to the theme, create a new JavaScript layer before going into production. For more information about the Dojo build process see the web link to the Dojo Build System below.


JavaScript Layers

The theme utilizes two minmized and compressed JavaScript layers: theme.js and theme.edit.js . Both are located at PORTAL_HOME/theme/wp.theme.dojo/installedApps/dojo.ear/dojo.war/v1.4.3/com/ibm/themes/PageBuilder2 .


theme.js

This layer is included when the page is initially rendered. It includes all modules and widgets required for view mode.


theme.edit.js

This layer is included when a page enters Edit mode. It includes all modules and widgets required for customizing the page.

The same directory includes uncompressed versions of both files, You can edit these files during development or use them for debugging purposes. To use these uncompressed files:

  1. Access the WAS administrative console and select...

      Resources | Resource Environment | Resource Environment Providers | WP CommonComponentConfigService | Custom Properties

    and set...

      cc.isDebug = true

  2. Restart the portal.


Directory structure of theme resources

Inside a WAR file or WebDAV root folder, theme resources are grouped in the directory /themes/. There are additional folders such as, css, images, js, menuDefinitions, and system. This directory can be structured into subdirectories as follows:

For xxample:

For more information see Aggregation under the section about the Search order for portal resources.


The Page Builder theme

Related

Use WebDAV to manage themes and skins


Previous

Deploy the theme

docs.dojocampus.org

Related reference
Work with dynamic content spots


+

Search Tips   |   Advanced Search