Migration - Remove the site toolbar in an 8.0 theme
To use the new site toolbar of WebSphere Portal 8.5 within a WebSphere Portal 8.0 theme, first remove the existing toolbar that comes with the WebSphere Portal 8.0 theme.
All of the theme modules providing functions for editing and managing the site, which are also available in the new site toolbar, can be removed when you remove the toolbar. We cannot add the WebSphere Portal 8.5 site toolbar to a WebSphere Portal 8.0 theme while keeping the version 8.0 toolbar.
- Remove the theme modules from the WebSphere Portal 8.0 site toolbar from the theme profiles. Go through the theme profiles of the Portal 8.0 theme and remove the theme modules listed.
- wp_theme_edit
- wp_project_menu
- wp_preview
- wp_toolbar
- wp_project_menu_edit
- wp_preview_menu
- wp_pagebuilder_controls
- wp_pagebuilder_dnd
- mm_new_page_dialog
- mm_builder_wiring
- mm_move_page
- mm_delete_page
- mm_delete_control
- mm_page_sharing_permission
- Remove the dynamic content spots of the WebSphere Portal 8.0 site toolbar from the theme templates.
Edit the theme HTML templates of the WebSphere Portal 8.0 theme and remove the dynamic content spots with the following IDs.
- 80theme_preview
- 80theme_projectMenu
- 80theme_toolbar
- 80theme_pageModeToggle
- For each of the dynamic content spots, look for HTML anchor elements that reference the spots with its ID in the templates.
<a rel="dynamic-content" href="dyn-cs:id:spot-id"></a>
- Remove the HTML anchor element from the template and save the template file.
Depending on the theme, check if there is other decorating HTML markup which can be removed in addition to the anchor elements referencing the dynamic content spots. Verify the changes are applied to the theme template of each locale.
- In the default version 8.0 theme, the names of the theme template files are theme.html and theme_sidenav.html.
The localized versions of theme.html can be found in the locale subfolder, nls. For example theme_en.html. The theme template Plain.html does not need to be edited.
- In the menuDefinitions directory, remove shelfActions.json and moreActions.json.
- In the menuDefinitions directory, we can optimize the menu definition skinActions.json by removing the menu contributions in mm_builder_wiring, wp_pagebuilder_controls, and mm_delete_control.
- In the system directory, keep layouts.json and styles.json. Remove all other files.