+

Search Tips   |   Advanced Search

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.

  1. Connect the WebDAV client, such as WebDrive or AnyClient, to...

      http://host:port/wps/mycontenthandler/dav/fs-type1

  2. In the \themes\Portal8.0\contributions folder, copy the dojo17.json and oneui30.json files to local drive.

  3. Copy the dojo17.json and oneui30.json files from the local drive into the contributions folder for the theme, such as \themes\<yourTheme>\contributions.

  4. Delete the dojo16.json and oneui21.json in the contributions folder the theme.

  5. In the profiles folder for the theme, copy all profile JSON files to the local drive.

  6. Edit all profile JSON files and:

    1. Remove the _16 from the end of all Dojo modules. These modules start with dojo, dojox, or dijit.

    2. Remove the _21 from the end of the wp_one_ui module.

    3. Add the new wp_one_ui_dijit module after the wp_one_ui module (in the non-deferred part of the profile).

    4. Add the new wp_status_bar module after the wp_one_ui_dijit module (in the non-deferred part of the profile).

  7. Copy all profile JSON files from local drive into the profiles folder the theme.

  8. 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.

  9. Restart the Portal server.

  10. Your theme pages now loads Dojo 1.7, OneUI 3.0 and the status bar. To verify the Dojo level:

    1. Load one of the pages using Firefox with the Firebug plug-in, or the Console of other browsers.

    2. Go to the Console and run the command, dojo.version, which should now show 1.7.2.


Parent: Develop themes and skins