Using Navigation Menus¶
By default, Sites start with a Navigation Menu widget that is configured to display the site’s Public Pages hierarchy. In some cases, you may want more direct control or flexibility with how your site’s navigation menu is defined and displayed when the default configuration is not sufficient. In these cases you can create and configure new navigation menus.
Getting started with Navigation Menus involves:
Adding items to the menu like existing pages, adding links, or sub-menus
Optionally, categorizing the navigation menu to serve a particular function on your site
Adding the Navigation Menu widget (if it is not already present) to a page and configuring it
For example, a navigation menu can contain all child pages of a given page. You can display the menu using the Navigation Menu widget on the parent page. This creates a navigation that only displays the child pages selected, in effect creating a mini-site.
In DXP 7.3+, you can use Custom Fields to add more information to each item in your navigation menus (under Site Navigation Menu Item in the Custom Fields menu). You can then use Application Display Templates to use this information to further customize your navigation menus.
Creating Navigation Menus¶
Click Product Menu () → Site Builder → Navigation Menus.
Click the Add button () to add a new menu.
Enter a name: (for example: New Menu).
Click Save when finished.
The new navigation menu has been created.
Assigning Pages to a Navigation Menu¶
There are two main ways to assign existing pages to a navigation menu: click the New button or the Add button ().
Click New → Page.
Select the pages to be included into this navigation menu; in this example, three child pages from the private pages are to be included.
Click Add when finished.
Verify that the new navigation menu has been created.
Assigning New Pages to a Navigation Menu¶
You don’t have to create any pages before creating navigation menus. You can create a navigation menu first and then assign the pages later, when you create them.
To disable automatically adding new pages to a navigation menu,
Click the () icon next to the desired Navigation Menu (for example, New Menu) then Edit.
Click the () icon.
Uncheck the box.
Click Save when finished.
Once disabled, you’re not prompted to add the page to a navigation menu.
Categorize a Navigation Menu¶
You can categorize a navigation menu in the following ways:
|Navigation Menu Type||Usage|
|Primary Navigation||Primary Navigation is the main navigation for a page.|
|Secondary Navigation||Secondary Navigation is a second level of navigation, possibly a sidebar or a separate menu within a page.|
|Social Navigation||Social Navigation is for menus that contain links for sharing content on social media or similar tasks.|
Click the () icon next to the desired navigation menu (for example, New Menu)
Click the desired navigation (for example, Primary Navigation).
The navigation menu type appears in the Marked As field. For more information about each type, see the Configuring Navigation Menus.
Deleting a Navigation Menu¶
Click the () icon next to the desired navigation menu (for example, New Menu) then Delete.
Click OK in the confirmation.
The Navigation Menu has been deleted.
Not finding what you're looking for?
Pardon our dust as we revamp and transition our product documentation to this site. If something seems missing, please check Liferay Help Center documentation for Liferay DXP 7.2 and previous versions.Try Liferay's Help Center