Adding resource environment provider properties
Resource environment provider (REP) custom properties are global in scope, but you can use a consistent naming convention for a theme or module that applies across multiple themes.
For properties that are used only by a single theme, prefix with yourTheme. For those properties that are used only by a single module, prefix with yourModule. Modules do not belong to any particular theme and can be used by any theme. It is a good practice to put your modules in one web app and each theme in its own separate web app.
Replace occurrences in italics with the actual names of your items.
-
Access the WebSphere® Integrated Solutions Console.
-
Go to Resources > Resource Environment > Resource Environment Providers.
-
Select Node=<node>, Server=HCL Portal and HCL Web Content Manager.
-
Click New.
-
Enter YourPrefix ThemesConfig in the Name field.
-
Click OK.
-
Find your REP in the table and click YourPrefix 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 your web application that contains your modules in the Value field, such as /yourprefix/modules.
-
Click OK.
-
Click New.
-
Enter yourTheme.contextRoot in the Name field. Because it is scoped to your theme, it uses the yourTheme. prefix.
-
Enter the context root of your web application that contains your theme in the Value field, such as /yourprefix/yourtheme.
-
Click OK.
-
-
Create example properties that add REP properties for your theme or module:
-
Click New.
-
Enter yourTheme.yourRepProperty in the Name field. Because it is scoped to your theme, use the yourTheme. prefix.
-
Enter yourvalue in the Value field.
-
Click OK.
-
Click New.
-
Enter yourModule.yourRepProperty in the Name field. Because it is scoped to your 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.