Copying the static theme and skin resources
Making a unique copy of your static theme resources is the first step toward creating a WAR-based theme copy.
Make sure that Eclipse, IBM® Rational® Application Developer, or Rational Team Concert with the Java EE developer tools add-on is installed.
-
Connect your WebDAV client to http://host:port/wps/mycontenthandler/dav/themelist/.
-
Create the folder themes on your local disk. Then, copy the folder ibm.portal.85Theme into the new themes folder.
-
Rename the folder to the name of your theme, such as customTheme.
-
Rename the Hidden folder in themes/customTheme/skins to customSkin. Delete all other skins.
-
Switch to the Java EE perspective, and select File > New > Dynamic Web Project.
-
In the Project field, enter the name of your theme, such as CustomThemeStatic.
-
If it is not already selected, select 2.4 for the Dynamic Web Module version.
-
Select Add project to an EAR, enter the name customThemeEAR, and click Next to the Web Module page.
-
On the Web Module page, change Context Root to customThemeStatic, or whatever you want your context root to be, and click Finish.
-
Expand your new CustomThemeStatic project. Then, find and expand the WebContent folder.
-
Copy the themes folder that contains customTheme that you created in Step 2 to the WebContent folder.
-
Modify
web.xml
from the WebContent\WEB-INF directory with the following code:<display-name>CustomThemeStatic</display-name> <context-param> <description>A regular expression that defines which of the resources in the war file can be served by the portal war datasource.</description> <param-name>com.ibm.portal.whitelist</param-name> <param-value>.*</param-value> </context-param> <context-param> <description>A regular expression that defines which of the resources in the war file cannot be served by the portal war datasource.</description> <param-name>com.ibm.portal.blacklist</param-name> <param-value>WEB-INF/.*</param-value> </context-param> </web-app>