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.
- Access the WAS console and go to...
Resources | Resource Environment | Resource Environment Providers | Node=MyNode, Server=WebSphere_Portal | New
- Enter MyPrefix ThemesConfig in the Name field.
- Click OK.
- Find the REP in the table and click MyPrefix ThemesConfig.
- Click Custom properties.
- Create a global and a theme property:
- Click New.
- Enter modules.contextRoot in the Name field. Because it is global in scope, it does not use any particular prefix.
- Enter the context root of the web application containing the modules in the Value field, such as /yourprefix/modules.
- Click OK.
- Click New.
- Enter myTheme.contextRoot in the Name field. Because it is scoped to the theme, it uses the myTheme. prefix.
- Enter the context root of the web application containing the theme in the Value field, such as /yourprefix/yourtheme.
- Click OK.
- Optional: Create example properties that add REP properties for the theme or module:
- Click New.
- Enter myTheme.yourRepProperty in the Name field. Because it is scoped to the theme, use the myTheme. prefix.
- Enter yourvalue in the Value field.
- Click OK.
- Click New.
- Enter yourModule.yourRepProperty in the Name field. Because it is scoped to the module, use the yourModule. prefix.
- Enter yourvalue in the Value field.
- Click OK.
- Save and persist the changes to the master configuration.
- Restart the portal server.