You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/customization/proc-customize-rhdh-sidebar-menuitems.adoc
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,22 +93,26 @@ dynamicPlugins:
93
93
----
94
94
--
95
95
96
-
. To ensure that a menu item is identified as a main menu item, you must add `default.` prefix to its key. For example:
96
+
. To ensure that a menu item is identified as a main menu item, you must add the `default.` prefix to its key. For example:
97
97
+
98
98
--
99
99
.Example configuration of main menu items in sidebar navigation
100
100
[source,yaml]
101
101
----
102
102
dynamicPlugins:
103
103
frontend:
104
-
default.main-menu-items: # key for configuring static main menu items
105
-
default.<menu_item_name>: # key of the menu item configuration. `default.` prefix is required for a main menu item key <1>
106
-
parent: my_menu_group # optional, specifies the parent menu item for this item
107
-
priority: 10 # optional, specifies the order of this menu item within its menu level
108
-
default.<menu_group_parent_item_name>: # must be configured if it is specified as the parent of any menu items. `default.` prefix is required for a main menu item key
109
-
icon: my_menu_group_icon # required for parent menu items, defines the icon for the menu group
110
-
title: my_menu_group_title # required for parent menu items, defines the icon for the menu group
111
-
priority: 100 # optional, specifies the order of the parent menu item in the sidebar
104
+
default:
105
+
main-menu-items: # key for configuring static main menu items
106
+
menuItems:
107
+
default: # `default.` prefix is required for a main menu item key <1>
108
+
<menu_item_name>: # key of the menu item configuration.
109
+
parent: my_menu_group # optional, specifies the parent menu item for this item
110
+
priority: 10 # optional, specifies the order of this menu item within its menu level
111
+
default: # `default.` prefix is required for a main menu item key <1>
112
+
<menu_group_parent_item_name>: # must be configured if it is specified as the parent of any menu items.
113
+
icon: my_menu_group_icon # required for parent menu items, defines the icon for the menu group
114
+
title: my_menu_group_title # required for parent menu items, defines the icon for the menu group
115
+
priority: 100 # optional, specifies the order of the parent menu item in the sidebar
0 commit comments