Liferay DXP’s product navigation consists of the main menus you use to customize, configure, and navigate the system. When you edit a page, switch to a different Site scope, access a User’s credentials, etc., you’re using the default navigation menus. Customizing a default menu can help give your Liferay instance a unique touch. You can extend and customize the default product navigation to fit your need.
There are four product navigation sections that you can extend:
- Product Menu
- Control Menu
- Simulation Menu
- User Personal Menu
The Product Menu is on the left, and displays the Control Panel and Site Administration functionality. The Control Menu is on top, offering navigation to the Product Menu, Simulation Menu (the right menu), and the Add button. When certain settings are enabled (e.g., Staging, Page Customization, etc.), more tools are offered. The Simulation Menu offers options to simulate your Site’s look for different scenarios (devices, user segments, etc.). Finally, the User Personal Menu holds selectable items containing a user’s own account settings.
You’ll learn more about each of these product navigation sections next.
By default, Liferay’s Product Menu consists of two main sections: Control Panel and Site Administration. These sections are called Panel Categories. For instance, the Control Panel is a single Panel Category, and when clicking on it, you see six child Panel Categories: Users, Sites, Apps, Configuration, and Workflow. Clicking a child Panel Category shows panel apps.
The Product Menu is intuitive and easy to use—but you can still change it any way you want. You can reorganize the Panel Categories and apps, or add completely new categories and populate them with custom Panel Apps. You’ll learn how to provide new or modified Panel Categories and Panel Apps for the Product Menu. For more information, read the Customizing the Product Menu articles.
The Control Menu is the most visible and accessible menu. For example, on your home page, the Control Menu offers default options for accessing the Product Menu, Simulation Menu, and Add Menu. You can think of this menu as the gateway to configuring options in Liferay DXP.
If you navigate away from the home page, the Control Menu adapts and provides helpful functionality for whatever option you’re using. For example, if you navigate to Site Administration → Content & Data → Web Content, you see a Control Menu with different functionality tailored for that option.
The default Control Menu contains three categories representing the left, middle, and right portions of the menu. You can create navigation entries for each category. For more information, read the Customizing the Control Menu articles.
When testing how pages and apps appear for users, it’s important to simulate their views in as many ways as possible. The Simulation Menu on the right-side of the main page allows this, and you can extend the menu if you need to simulate something that it does not provide.
There are few differences between the Simulation Menu and Product Menu, mostly
because they extend the same base classes. The Simulation Menu, by default, is
made up of only one Panel Category and one Panel App. Liferay provides the
class, a hidden category needed to hold the
DevicePreviewPanelApp. This is the
app and functionality you see in the Simulation Menu by default.
For more information, read the Extending the Simulation Menu article.
The User Personal Menu displays options unique to the current user. By default, this menu appears as an avatar button that expands the User Settings sub-menu just below the Control Menu. In a custom theme, the User Personal Menu could appear anywhere in the interface.
Although Liferay’s default User Personal Menu is bare-bones, you can add more functionality to fit your needs. Unlike other product navigation menus (e.g., Product Menu), the User Personal Bar does not require the extension/creation of Panel Categories and Panel Apps. It uses another common Liferay framework for providing functionality: Portlet Providers.
The User Personal Menu can be seen as a placeholder in every Liferay theme. By default, Liferay provides one sample User Personal Bar portlet that fills that placeholder, but the portlet Liferay provides can be replaced by other portlets.
For more information, read the Customizing the User Personal Bar and Menu article.