+

Search Tips   |   Advanced Search

Add resource environment provider properties to configure theme and modules

Resource environment provider (REP) custom properties are global in scope, but use a consistent naming convention for a theme or module that applies across multiple themes.

For properties used only by a single theme, prefix with myTheme. For those properties used only by a single module, prefix with ourModule. Modules do not belong to any particular theme and can be used by any theme. It is a good practice to put the modules in one web app and each theme in its own separate web app.

Replace occurrences in italics with the actual names of the items.

  1. Access the WAS console and go to...

      Resources | Resource Environment | Resource Environment Providers | Node=MyNode, Server=WebSphere_Portal | New

  2. Enter MyPrefix ThemesConfig in the Name field.

  3. Click OK.

  4. Find the REP in the table and click MyPrefix ThemesConfig.

  5. Click Custom properties.

  6. Create a global and a theme property:

    1. Click New.

    2. Enter modules.contextRoot in the Name field. Because it is global in scope, it does not use any particular prefix.

    3. Enter the context root of the web application containing the modules in the Value field, such as /yourprefix/modules.

    4. Click OK.

    5. Click New.

    6. Enter myTheme.contextRoot in the Name field. Because it is scoped to the theme, it uses the myTheme. prefix.

    7. Enter the context root of the web application containing the theme in the Value field, such as /yourprefix/yourtheme.

    8. Click OK.

  7. Optional: Create example properties that add REP properties for the theme or module:

    1. Click New.

    2. Enter myTheme.yourRepProperty in the Name field. Because it is scoped to the theme, use the myTheme. prefix.

    3. Enter yourvalue in the Value field.

    4. Click OK.

    5. Click New.

    6. Enter yourModule.yourRepProperty in the Name field. Because it is scoped to the module, use the yourModule. prefix.

    7. Enter yourvalue in the Value field.

    8. Click OK.

  8. Save and persist the changes to the master configuration.

  9. Restart the portal server.


Parent Configure the portal theme and modules