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-configuring-dynamic-plugin-menuitem.adoc
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ dynamicPlugins:
18
18
title: _<plugin_page_title>_ # <4>
19
19
priority: 10 # <5>
20
20
parent: favorites # <6>
21
+
enabled: true # <7>
21
22
----
22
23
<1> `_<plugin_name>_`: Enter the plugin name. This name is the same as the `scalprum.name` key in the `package.json` file.
23
24
<2> `_<menu_item_name>_`: Enter a unique name in the main sidebar navigation for either a standalone menu item or a parent menu item. If this field specifies a plugin menu item, the name of the menu item must match the name using in the corresponding path in `dynamicRoutes`. For example, if `dynamicRoutes` defines `path: /my-plugin`, then `menu_item_name` must be defined as `my-plugin`.
@@ -30,6 +31,7 @@ dynamicPlugins:
30
31
// Update <4> for release 1.6 as this option (currently a workaround) would be added as a functionality. RHIDP-6333.
31
32
<5> `priority`: (Optional) Sets the order in which menu items appear in the sidebar. The default priority is 0, which places the item at the bottom of the list. A higher priority value places the item higher in the sidebar. You can define this field for each section.
32
33
<6> `parent`: (Optional) Enter the parent menu item under which the current item is nested. If this field is used, the parent menu item must be defined elsewhere in the `menuItems` configuration of any enabled plugin. You can define this field for each section.
34
+
<7> `enabled`: (Optional) If this field is used to hide the menu item from the sidebar, set the value to `false`. To display the menu item in the sidebar, set the value to `true`.
Copy file name to clipboardExpand all lines: modules/customizing-the-appearance/proc-modifying-or-adding-rhdh-custom-menuitem.adoc
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ dynamicPlugins:
22
22
title: _<my_menu_title>_ # <8>
23
23
to: _<path_to_the_menu_target_page>_ # <9>
24
24
priority: 100 # <10>
25
+
enabled: true # <11>
25
26
----
26
27
<1> `default._<menu_group_parent_item_name>_`: (Optional) Enter the menu group parent item name to configure static main menu items. If no `default._<menu_item_name>_` has a `parent` value set, this field is not needed.
27
28
<2> `icon`: Enter the menu icon. Required for parent menu items.
@@ -34,6 +35,7 @@ dynamicPlugins:
34
35
// Update <8> for release 1.6 as this option (currently a workaround) would be added as a functionality. RHIDP-6333.
35
36
<9> `to`: (Optional) Enter the path that the menu item navigates to. If it is not set, it defaults to the home page.
36
37
<10> `priority`: (Optional) Enter the order of this menu item within its menu level.
38
+
<11> `enabled`: (Optional) If this field is used to display the menu item in the sidebar, set the value to `true`. To hide the menu item from the sidebar, set the value to `false`.
37
39
38
40
+
39
41
.Example `mainItems` configuration
@@ -56,11 +58,13 @@ default.main-menu-items:
56
58
title: References # <5>
57
59
icon: school # <6>
58
60
to: /references # <7>
61
+
enabled: true # <8>
59
62
----
60
63
<1> `icon`: Specifies if you want to change the icon default menu item for the catalog.
61
64
<2> `title`: Specifies an empty string `" "` to hide the learning path from the default sidebar.
62
65
<3> `default.parentlist`: Introduces the parent menu item.
63
66
<4> `parent`: Nests home menu under the `default.parentlist` parent menu item.
64
67
<5> `title`: Specifies a name for `default.references`
65
68
<6> `icon`: Displays the `school` icon.
66
-
<7> `to`: Redirects `default.references` to the `/references` page.
69
+
<7> `to`: Redirects `default.references` to the `/references` page.
70
+
<8> `enabled`: (Optional) If this field is used to display the menu item in the sidebar, set the value to `true`. To hide the menu item from the sidebar, set the value to `false`.
0 commit comments