Update a Portal 7.0.0.2 theme to use Dojo 1.7
Update an existing Portal 7.0.0.2 theme to use Dojo 1.7, OneUI 3.0 and the status bar.Migrate the WebSphere Portal 7.0.0.2-based theme to a WebSphere Portal 8.0 server before completing these steps.
- Connect the WebDAV client, such as WebDrive or AnyClient, to...
http://host:port/wps/mycontenthandler/dav/fs-type1
- In the \themes\Portal8.0\contributions folder, copy the dojo17.json and oneui30.json files to local drive.
- Copy the dojo17.json and oneui30.json files from the local drive into the contributions folder for the theme, such as \themes\<yourTheme>\contributions.
- Delete the dojo16.json and oneui21.json in the contributions folder the theme.
- In the profiles folder for the theme, copy all profile JSON files to the local drive.
- Edit all profile JSON files and:
- Remove the _16 from the end of all Dojo modules. These modules start with dojo, dojox, or dijit.
- Remove the _21 from the end of the wp_one_ui module.
- Add the new wp_one_ui_dijit module after the wp_one_ui module (in the non-deferred part of the profile).
- Add the new wp_status_bar module after the wp_one_ui_dijit module (in the non-deferred part of the profile).
- Copy all profile JSON files from local drive into the profiles folder the theme.
- Copy the theme template file theme_en.html, or whichever file is the default locale, to the local drive and edit it.
This file is the nls folder for the theme, such as...
\themes\<yourTheme>\nls
Replace the following line:
<div id="wpthemeStatusBarContainer"></div>
...with the new status bar dynamic content spot:
<a rel="dynamic-content" href="http://setgetweb.com/p/portal85/dyn-cs:id:80theme_status"></a>
Repeat for any other locale files for the languages that you support.
We do not need to modify the theme.html file in the \themes\<yourTheme> folder. It is only used to redirect to the appropriate locale file in the nls folder. Modify it only when we add or remove locales.
- Restart the Portal server.
- Your theme pages now loads Dojo 1.7, OneUI 3.0 and the status bar. To verify the Dojo level:
- Load one of the pages using Firefox with the Firebug plug-in, or the Console of other browsers.
- Go to the Console and run the command, dojo.version, which should now show 1.7.2.
Parent: Develop themes and skins