Creating Dropdown Menus with Fragments

Available: Liferay DXP/Portal 7.4+.

Liferay provides the Dropdown Fragment to create advanced drop-down menus (A). With it, you can define drop zones for additional Page Fragments and widgets. These elements are then displayed to end users when they click on or hover over the Dropdown fragment.

The Dropdown Fragment defines a drop zone where you can add other fragments.

The following table lists the Dropdown Fragment’s General options (B):

OptionDescription
TypeControls the Dropdown Fragment style.
SizeSets the Dropdown Fragment size.
Panel TypeDefines the drop zone size:
  • Regular: Standard drop zone size.
  • Full Width: The drop zone size corresponds to the Module’s width containing the Fragment.
  • Mega Menu: The drop zone size corresponds to the Page’s width.
Display on HoverWhen you check this option, the Dropdown Fragment opens on mouse-over.
Keep Panel Open in Edit ModeCheck this option to keep the drop-zone open while you edit the Dropdown Fragment content.

You can define the drop zone size in the Dropdown panel using the Panel Type options.

tip

Place the Dropdown Fragment inside a Grid Fragment to observe the differences between the Full Width and Mega Menu panel types.

You can define the drop zone size in the Dropdown panel using the Panel Type options.

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy