Updating your theme to use simple context menus | HCL Digital Experience
The theme context menu framework that is provided with the module wp_theme_menus in Portal 8.0 and earlier versions is relabeled and improved in HCL Digital Experience 8.5. The new Simple Menu Framework is compatible with all previous versions of the wp_theme_menus.
About this task
Procedure
-
Update the existing module wp_theme_menus in
WebDAV/themes/your_theme/contributions/theme.json
and replace it with:
{ "id":"wp_theme_menus", "prereqs":[{ "id":"wp_simple_contextmenu_main" }] }
- Copy the following artifacts from the Portal 8.5 theme
to your migrated theme in the same directory:
- WebDAV/themes/Portal 8.5/contributions/simple_contextmenu.json
- WebDAV/themes/Portal 8.5/css/wp_simple_contextmenu.css
- WebDAV/themes/Portal 8.5/css/wp_simple_contextmenu.css.uncompressed.css
- WebDAV/themes/Portal 8.5/css/wp_simple_contextmenuRTL.css
- WebDAV/themes/Portal 8.5/css/wp_simple_contextmenuRTL.css.uncompressed.css
- WebDAV/themes/Portal 8.5/css/default/contextmenu.css
- WebDAV/themes/Portal 8.5/css/default/contextmenu.css.uncompressed.css
- WebDAV/themes/Portal 8.5/css/default/contextmenuCommon.css
- WebDAV/themes/Portal 8.5/css/default/contextmenuCommon.css.uncompressed.css
- WebDAV/themes/Portal 8.5/css/default/contextmenuRTL.css
- WebDAV/themes/Portal 8.5/css/default/contextmenuRTL.css.uncompressed.css
- WebDAV/themes/Portal 8.5/menuDefinitions/templates/simpleMenuTemplate.html
- Click the Administration menu icon. Then, click . Then, click to invalidate the theme cache. You must invalidate the cache so that your profile and module changes are picked up by the Portal server. Auto invalidation recognizes your changes automatically for WebDAV based themes. No further action is required. For more information, see Utilities.