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/customizing-the-appearance/proc-customize-rhdh-sidebar-menuitems.adoc
+7-9
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,6 @@ Main menu items:: The core navigation structure of sidebar is static.
11
11
.Procedure
12
12
13
13
. Customize the main menu items using the following steps:
14
-
+
15
-
--
16
14
.. Open the `{my-app-config-file}` file.
17
15
.. To customize the order and parent-child relationships for the main menu items, use the `dynamicPlugins.frontend.default.main-menu-items.menuItems` field.
18
16
.. For dynamic plugin menu items, use the `dynamicPlugins.frontend.<package_name>.menuItems` field.
@@ -28,7 +26,7 @@ dynamicPlugins:
28
26
title: Home
29
27
icon: home
30
28
priority: 100
31
-
default.my-group:
29
+
default.my-group:
32
30
title: My Group
33
31
icon: group
34
32
priority: 90
@@ -115,7 +113,7 @@ dynamicPlugins:
115
113
116
114
117
115
. To modify a main menu item or add a custom menu item, add a section to the `default.main-menu-items` > `menuItems` section in your `{my-app-config-file}` file. Use the `default.` prefix to identify the key as a main menu item.
118
-
+
116
+
+
119
117
[source,yaml]
120
118
----
121
119
dynamicPlugins:
@@ -153,12 +151,12 @@ default.main-menu-items:
153
151
menuItems:
154
152
default.catalog:
155
153
icon: category # <1>
156
-
title: My Catalog
154
+
title: My Catalog
157
155
priority: 5
158
-
default.learning-path:
159
-
title: '' # <2> to hide the learning path from default sidebar
156
+
default.learning-path:
157
+
title: '' # <2>
160
158
default.parentlist: # <3>
161
-
title: Overview
159
+
title: Overview
162
160
icon: bookmarks
163
161
default.home:
164
162
parent: default.parentlist # <4>
@@ -173,4 +171,4 @@ default.main-menu-items:
173
171
<4> `parent`: Nests home menu under the `default.parentlist` parent menu item.
174
172
<5> `title`: Specifies a name for `default.references`
175
173
<6> `icon`: Displays the `school` icon.
176
-
<7> `to`: Redirects `default.references` to the `/references` page.
174
+
<7> `to`: Redirects `default.references` to the `/references` page.
0 commit comments