Export content from the filestore
We must export content from the filestore to create your custom theme. There are different options available to export files from the portal file store.
Export content from the filestore is required in different scenarios, however with different files to be exported. See the concrete scenario description for the detailed list of files to export. We can access the filestore using the following URL:
- http://<server>:<port>/wps/mycontenthandler/dav/fs-type1/
Use one of the following options to export the files stored there.
Get a compressed file using your browser
We can obtain a compressed file of the content in the filestore using your browser. Enter the following url in your browser:http://<server>:<port>/wps/mycontenthandler/dav/fs-type1/<folder-name>/?mime-type=application/zipWhere:
- The <server> value is the host name of the portal.
- The <port> value is the port number for HCL WebSphere Portal.
- The <folder-name> value is the folder to be compressed. This value is optional.
Note: A / must follow the folder name.
The URL triggers a download of a compressed file. If we are prompted for a user and password enter the admin user ID and password for HCL WebSphere Portal. Store the file on the local file system. This following url downloads the complete content of the filestore:
http://<server>:<port>/wps/mycontenthandler/dav/fs-type1/<folder-name>/?mime-type=application/zipThe following url downloads the content of the themes folder:http://<server>:<port>/wps/mycontenthandler/dav/fs-type1/themes/?mime-type=application/zip
Automate the export using an Ant task
To automate the export, we can write an Ant task as depicted in the following example:<target name="export-mytheme"> <get src="http://<server>:<port>/wps/mycontenthandler/dav/fs-type1/<folder-name>/?mime-type=application/zip" username="PortalAdminID" password="PortalAdminPwd" dest="/tmp/mytheme.zip" /> </target>Where:
- The <server> value is the host name of the portal.
- The <port> value is the port number for HCL WebSphere Portal.
- The <folder-name> value is the folder to be compressed. This value is optional.
Note: A / must follow the folder name.
Use WebDAV to connect to the filestore
Enable Some HTTP OPTIONS for WebDAV clients
Use a WebDav Client to connect to the filestore using the following url:
- http://<server>:<port>/wps/mycontenthandler/dav/fs-type1/
Browse to the folder you need and copy the files to your local drive.
Export theme EAR file
- Export from console
Go to Enterprise Applications, select check box for the theme application, then click Export to export the EAR file.
After making changes, redeploy
- Export theme EAR file from command-line
- Export theme ear
cd C:\IBM\WebSphere\wp_profile\bin
wsadmin.bat -user wpsadmin -password foo123 -c "$AdminApp export MyCoThemeEAR C:/temp/MyCoThemeEAR.ear"
cd c:\temp- Expand theme...
C:\IBM\WebSphere\wp_profile\bin\EARExpander.bat -ear MyCoThemeEAR.ear -operationDir /temp/MyCoThemeEAR -operation expand -expansionFlags all
- Make changes to theme
- Repackage theme
cd C:\temp
C:\IBM\WebSphere\wp_profile\bin\EARExpander.bat -ear /temp/MyCoThemeEAR.ear -operationDir /temp/MyCoThemeEAR -operation collapse
- https://help.hcltechsw.com/digital-experience/9.5/dev-theme/themeopt_themedev_manual_deployregister.htmlDeploy the updated MyCoThemeEAR.ear back to portal
- Stop Portal
- Clear contents of...
- WP_PROFILE\temp
- WP_PROFILE\wstemp
- WP_PROFILE\tranlog
Parent topic: Manually packaging themes for deployment