Hiding menu options in the default portal menus

Note: To hide main menu options for portals that use the XML-based side menu, you must edit the XML file. See Hiding menu options in the XML-based side menu.

The default portal menus are included in the top and bottom layouts of the custom master page, so they are displayed on all portal pages. You can hide menu options for pages you do not want to expose in your portal.

The top menu provides links in these regions of the MasterTopHeader_MenuBar layout:

  • Menu2A, the Activity menu
  • Menu3A, the Account menu

The bottom menu provides links in the MasterBottomHeader_FooterMain layout.

This example explains how to hide a menu option in the top menu. You can follow this example to hide any menu option in either the top or bottom menu; however, repositioning of cells may be necessary to hide some links, to avoid creating an empty space. In those cases, see the portal customization guide.

  1. In the Portal Manager, select Content Development > Layouts.
  2. Find the MasterTopHeader_MenuBar layout.
  3. Right-click in the UI column for that row and select View Layout UI. This opens a new browser window for the portal Layout Editor.
  4. Click Edit. This creates a new copy of the layout with your specified originator.
  5. In the right pane, expand the Regions section.
  6. Select the menu region that contains the link to hide. For example, to hide the Documents link, click Menu2A. The center of the page shows the card design for the selected region.
  7. In the active card design, click the cell that contains the link to hide; for example, the cell containing DocumentsLabel.
  8. In the right pane, expand the Cell section.
  9. Clear the Rendered? check box.
    Note: Cell attributes can be overridden in layout script. For example, some of the menu options on the IPF portals are displayed even if you clear the Rendered? attribute for their cells. These menu options are controlled by the layout script, and they are displayed based on the type of user that is logged in.
  10. Click Save.
  11. To review the change, open or refresh your portal website.
  12. Repeat this task for all versions of the layout. See About responsive UI layouts.