Modify the dynamic resource references for the theme
Modify the dynamic resource references to link to the static resources for the theme.
- Log on to the WAS console and go to...
Resources | Resource Environment | Resource Environment Providers | WP DynamicContentSpotMappings | Custom properties
- Notice the properties that start with 80theme. These properties are the ones that are referenced by the dynamic content spots in the theme template theme*.html files.
Also notice that the values of those properties use the context root...
/wps/themeModules
...meaning that they point to the dynamic resources in the web app of the IBM WebSphere Portal 8.0 theme. Create similar properties that use the context root...
/customTheme
...to point to the dynamic resources in the web app of your custom theme.
- Click the New toolbar button to add each of the following new properties:
Name Value customTheme_asa res:/wps/themeModules/modules/asa/jsp/asa.jsp, wp_analytics customTheme_asaHead res:/wps/themeModules/modules/asa/jsp/head.jsp, wp_analytics customTheme_asaPortlet res:/wps/themeModules/modules/asa/jsp/asaPortlet.jsp, wp_analytics customTheme_commonActions res:/customTheme/themes/html/dynamicSpots/commonActions.jsp customTheme_crumbTrail res:/customTheme/themes/html/dynamicSpots/crumbTrail.jsp?rootClass=wpthemeCrumbTrail&startLevel=2 customTheme_footer res:/customTheme/themes/html/dynamicSpots/footer.jsp customTheme_head res:/customTheme/themes/html/dynamicSpots/head.jsp customTheme_layout lm:template customTheme_pageModeToggle res:/customTheme/themes/html/dynamicSpots/pageModeToggle.jsp, wp_toolbar customTheme_portletLink res:/customTheme/skins/html/portletLink.jsp customTheme_preview res:/wps/themeModules/modules/pagebuilder/jsp/preview.jsp,wp_preview customTheme_primaryNav res:/customTheme/themes/html/dynamicSpots/navigation.jsp?rootClass=wpthemePrimaryNav%20wpthemeLeft&startLevel=1 customTheme_projectMenu res:/wps/themeModules/modules/pagebuilder/jsp/projectMenu.jsp,wp_project_menu customTheme_search res:/wps/themeModules/themes/html/dynamicSpots/modules/search/search.jsp customTheme_secondaryNav res:/customTheme/themes/html/dynamicSpots/navigation.jsp?rootClass=wpthemeSecondaryNav&startLevel=2&levelsDisplayed=2 customTheme_sideNav res:/customTheme/themes/html/dynamicSpots/sideNavigation.jsp?startLevel=2 customTheme_status res:/customTheme/themes/html/dynamicSpots/status.jsp, wp_status_bar customTheme_toolbar res:/wps/themeModules/modules/pagebuilder/jsp/toolbar.jsp,wp_toolbar customTheme_topNav res:/customTheme/themes/html/dynamicSpots/navigation.jsp?rootClass=wpthemeHeaderNav&startLevel=0&primeRoot=true
- Click OK to create each property. Click Save to update the master configuration.
- Connect the WebDAV client to...
http://host:port/wps/mycontenthandler/dav/fs-type1
- From the folder...
themes\customTheme\nls
...copy the theme_en.html file, or whichever file is the default locale, to the local drive. Repeat for any of the other locale files for the languages that you support.
- Edit the theme*.html files, and find and replace all occurrences of 80theme with customTheme. For example...
dyn-cs:id:7002theme_head
...becomes...
dyn-cs:id:customTheme_head
- Save the files.
- Copy the files into the fs-type1 folder.
We do not need to modify...
themes\customTheme\theme.html
That file is not used other than to redirect to the appropriate locale file in the nls folder. You need to modify it only if we add or remove locales.
Parent: Link the static resources to the dynamic resources for the theme