The modified policy sets are placed in individual directories. The directory name can reflect the virtual portal name, but it cannot have spaces and must only contain the characters 0-9, A-Z, and a-z. The actual policy names cannot be modified between the virtual portals. For example, the policy wp_main.mlyt
cannot be renamed.
Virtual portals are associated with the appropriate policy set in the mwp.properties
file. Multiple virtual portals can use the same policy set. If a unique look and feel is not needed, the virtual portals can use the default policy set. The default policy set is created from the initial portal's policy set.
When working with the Mobile Portal Toolkit you will find the default policy set in the following directory: wp_profile_root/PortalServer/wp.mobile/wp.mobile.mwp/policies/aggregator/
The following instructions describe the steps needed to configure a virtual portal to use a unique policy set. An example virtual portal, vp2, is used to illustrate the process.
Parent topic: Managing virtual portals
- Copy the default policy set to a new directory.
- Change your working directory to wp_profile_root/PortalServer/wp.mobile/wp.mobile.mwp/policies/aggregator/
is the directory where WebSphere
® Portal is installed.
- Create a directory for the new policy set. The directory name cannot contain spaces and can include only the following characters: 0-9, A-Z, and a-z. For example:
- Copy the /wp directory and all of the policy files to the new directory.
- Change to the new directory, /vp2, and customize the policies as needed. Be careful not to change the policy filenames or the element names in the policy files. Modify only the attributes–such as background color, font size and style, and alignment.
- Save the files that you modify.
- Change your working directory to wp_profile_root/ConfigEngine.
- Import the new policy set into MCS using the following command:
- Open mwp.properties in a text editor.
- For the property mwp.virtual.portals, add the virtual portal object ID to the value.
Use a comma (,) to separate virtual portals. For example:
To find the object IDs for your virtual portals, use the command
- Add the following property to the file and specify the policy set to use. In the following example, 18_8000CB1A00U5D0IKQD9PHS1002 is the virtual portal object ID and vp2 is the directory name you created earlier.
- Save your changes and close the file.
- Restart the portal server using the following commands:
[[Variable names used in the information center for user supplied informationmpa8|wp_profile_root]]/bin/stopServer.sh server_name -username WAS_admin -password WAS_admin_password_value
[[Variable names used in the information center for user supplied informationmpa8|wp_profile_root]]/bin/startServer.sh server_name
[[Variable names used in the information center for user supplied informationmpa8|wp_profile_root]]\bin\stopServer server_name -username WAS_admin -password WAS_admin_password_value
[[Variable names used in the information center for user supplied informationmpa8|wp_profile_root]]\bin\startServer server_name
is the name of the WebSphere
Application Server instance (for example, WebSphere_Portal