Change the theme default profile
We can change the profile for the theme or a specific page to define the modules loaded.
Parent: Change the theme profile
WebDAV
- Connect the WebDAV client to http://<server>:<portal>/wps/mycontenthandler/dav/themelist/.
- Navigate to the folder for the theme and copy the metadata.properties file to the 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_full.json
- Copy the local copy of the metadata.properties file back into the folder for the theme in the themelist folder.
XMLAccess
- Export the theme. We can export all themes defined for 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.0.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_full.json]]></parameter>
- Import the XML file using the command line or Import XML.
- Restart WebSphere Portal.
Config Tasks for WebSphere Portal 8.0 theme
Change the profile for the ready-to-use WebSphere Portal8.0 can simply be done using the following provided config engine tasks:
- deploy-full-profile-80-theme
- deploy-full-profile-80-theme
- This config task applies the full profile to the WebSphere Portal8.0 theme.
- deploy-lightweight-profile-80-theme
- This config task applies the lightweight profile to the WebSphere Portal8.0 theme
- deploy-deferred-profile-80-theme
- This config task applies the deferred profile to the WebSphere Portal8.0 theme.