Change the theme default profile
We can change the profile for the theme, or a specific page, to define the modules loaded.
WebDAV
- Connect the WebDAV client to...
http://<server>:<portal>/wps/mycontenthandler/dav/themelist/
- Navigate to the folder for the theme.
- Copy metadata.properties to your local drive.
- Modify the local copy to point to the desired profile desired. For example...
com.ibm.portal.themetype=CSA2
resourceaggregation.profile=profiles/profile_lightweight.json
- Copy the local copy of metadata.properties back into the folder for the theme in the themelist folder.
xmlaccess
- Export the theme.
We can export all themes defined for HCL WebSphere Portal using the following script, or insert the specific theme object ID to export:
<?xml version="1.0" encoding="UTF-8"?> <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_8.5.0.xsd" type="export" create-oids="true"> <portal action="locate"> <theme action="export" object /> </portal> </request>
- Point to the new profile. For example:
<parameter name="resourceaggregation.profile" type="string" update="set"><![CDATA[profiles/profile_lightweight.json]]> </parameter>
- Import the XML file using the command line or Import XML.
- Restart HCL WebSphere Portal.
Parent Change the theme profile