Changing the theme default profile
You can change the profile for the theme or a specific page to define the modules loaded.
WebDAV
-
Connect your WebDAV client to http://<server>:<portal>/wps/mycontenthandler/dav/themelist/.
-
Navigate to the folder for your theme and copy the metadata.properties file to your local drive.
-
Edit the local copy of the file and modify it to point to the profile desired.
For Example:
com.ibm.portal.themetype=CSA2 resourceaggregation.profile=profiles/profile_lightweight.json
-
Copy the local copy of the metadata.properties file back into the folder for your theme in the themelist folder.
XMLAccess
-
Export the theme.
You can export all themes defined for HCL Digital Experience (DX) using the following script, or insert the specific theme object ID you want 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" objectid="*" /> </portal> </request>
-
Modify the parameter resourceaggregation.profile to 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 DX.