Copying the dynamic theme resources
Making a copy of the dynamic theme resources for your theme is the second step toward creating a WAR-based theme copy.
Only the files that are specified in this procedure need to be copied. Your theme might not work if other files are copied.
-
Open the workspace that contains your CustomThemeStatic project and select File > New > Dynamic Web Project.
-
In the Project field, enter the name of your theme, such as CustomThemeDynamic.
-
If it is not already selected, select 2.4 for the Dynamic Web Module version.
-
Select Add project to an EAR and add to CustomThemeEAR.
-
Click Next to the Web Module page.
-
On the Web Module page, change Context Root to customTheme, or whatever you want your context root to be, and click Finish.
-
Expand your new CustomThemeDynamic project and find and expand the WebContent folder.
-
Find the PortalServer_root\theme\wp.theme.themes\default85\installed Apps\DefaultTheme85.ear\DefaultTheme85.war\skins folder on file system and drag it onto the WebContent folder. This step copies and imports the skins folder into your dynamic web project.
-
Find the PortalServer_root\theme\wp.theme.themes\default85\installed Apps\DefaultTheme85.ear\DefaultTheme85.war\themes folder on file system and drag it onto the WebContent folder. This step copies and imports the themes folder into your dynamic web project.
-
In your CustomTheme project, find the WEB-INF folder inside the WebContent folder.
-
Find the PortalServer_root\theme\wp.theme.themes\default85\installed Apps\DefaultTheme85.ear\DefaultTheme85.war\WEBINF\ decorations.xml file on file system and drag it onto the WEB-INF folder. This step copies and imports the file into your dynamic web project.
-
Find the PortalServer_root\theme\wp.theme.themes\default85\installed Apps\DefaultTheme85.ear\DefaultTheme85.war\WEB-INF\tld folder on file system and drag it onto the WEB-INF folder. This step copies and imports the tld folder into your dynamic web project.
-
Find the PortalServer_root\theme\wp.theme.themes\default85\installed Apps\DefaultTheme85.ear\DefaultTheme85.war\WEBINF\ plugin.xml file on the file system and drag it onto the WEB-INF folder. This step copies and imports the file into your dynamic web project.
-
Modify web.xml from the WebContent\WEB-INF directory with the following code:
<context-param> <description>A regular expression that defines which of the resources in the war file can be served by the portal res datasource.</description> <param-name>com.ibm.portal.resource.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 res datasource.</description> <param-name>com.ibm.portal.resource.blacklist</param-name> <param-value>WEB-INF/.*</param-value> </context-param>