You can use simple menus to customize your pages.
The Simple Theme template uses the simple menu framework for three menus: the portlet menu, the actions menu, and the profile menu. Using this framework, you can add menu entries by adding entries to the .json files in the fs-type1/themes/themename/menuDefinitions directory of the theme.
You must add the main module wp_simple_contextmenu_main to your theme profile for the current page before you can use simple menus in your theme.
<span role="button" aria-haspopup="true"
class="wpthemeMenuFocus" onclick="if (typeof wptheme != 'undefined')
wptheme.contextMenu.init({ 'node': this, menuId: 'pageAction', jsonQuery:
{'navID':ibmCfg.portalConfig.currentPageOID}, params:
{'alignment':'right'}});"<span class="wpthemeUnderlineText"
id="wpContextMenu">My Menu</span></span>
Note that the JavaScript calls wptheme.contextMenu.init and specified several parameters, including the menuID, which refers to the .json file in the menuDefinitions directory.
- pageAction.json
- Defines the contents of the action menu. By default, there are no actions. Instead, there is a header and a link to the IBM® Knowledge Center that describes how to use the menu framework.
- profileAction.json
- Defines the contents of the profile menu, which includes an entry for Edit Profile and an entry for Log Out. The Edit Profile menu entry uses a module that is called wp_selfcare_item that opens the selfcare portlet. The Log Out menu entry uses a DynamicMenu item that completes the log out task.
- skinAction.json
- Defines the items that can appear in the Portlet menu of the skin. It also defines all of the possible menu entries that are supported by the specific portlet.
Learn more about the Simple menu framework. Note that not all information at this link applies to the Simple Theme.