Skip to content

Commit af0877c

Browse files
committed
RHIDP-6569 - Document the configurable features of navigation (sidebar) in RHDH
1 parent 2331285 commit af0877c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

modules/customizing-the-appearance/proc-customize-rhdh-sidebar-menuitems.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,36 @@ dynamicPlugins:
2626
title: Home
2727
icon: home
2828
priority: 100
29+
enabled: true
2930
default.my-group:
3031
title: My Group
3132
icon: group
3233
priority: 90
34+
enabled: true
3335
default.catalog:
3436
title: Catalog
3537
icon: category
3638
to: catalog
3739
priority: 80
40+
enabled: true
3841
default.apis:
3942
title: APIs
4043
icon: extension
4144
to: api-docs
4245
priority: 70
46+
enabled: true
4347
default.learning-path:
4448
title: Learning Paths
4549
icon: school,
4650
to: learning-paths
4751
priority: 60
52+
enabled: true
4853
default.create:
4954
title: Create
5055
icon: add
5156
to: create
5257
priority: 50
58+
enabled: true
5359
----
5460

5561
.Procedure
@@ -67,6 +73,7 @@ dynamicPlugins:
6773
title: _<plugin_page_title>_ # <4>
6874
priority: 10 # <5>
6975
parent: favorites # <6>
76+
enabled: true # <7>
7077
----
7178
<1> `_<plugin_name>_`: Enter the plugin name. This name is the same as the `scalprum.name` key in the `package.json` file.
7279
<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`.
@@ -79,6 +86,7 @@ dynamicPlugins:
7986
// Update <4> for release 1.6 as this option (currently a workaround) would be added as a functionality. RHIDP-6333.
8087
<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.
8188
<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.
89+
<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`.
8290

8391
+
8492
.Example `menuItems` configuration
@@ -130,6 +138,7 @@ dynamicPlugins:
130138
title: _<my_menu_title>_ # <8>
131139
to: _<path_to_the_menu_target_page>_ # <9>
132140
priority: 100 # <10>
141+
enabled: true # <11>
133142
----
134143
<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.
135144
<2> `icon`: Enter the menu icon. Required for parent menu items.
@@ -142,6 +151,7 @@ dynamicPlugins:
142151
// Update <8> for release 1.6 as this option (currently a workaround) would be added as a functionality. RHIDP-6333.
143152
<9> `to`: (Optional) Enter the path that the menu item navigates to. If it is not set, it defaults to the home page.
144153
<10> `priority`: (Optional) Enter the order of this menu item within its menu level.
154+
<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`.
145155

146156
+
147157
.Example `mainItems` configuration
@@ -164,6 +174,7 @@ default.main-menu-items:
164174
title: References # <5>
165175
icon: school # <6>
166176
to: /references # <7>
177+
enabled: true # <8>
167178
----
168179
<1> `icon`: Specifies if you want to change the icon default menu item for the catalog.
169180
<2> `title`: Specifies an empty string `" "` to hide the learning path from the default sidebar.
@@ -172,3 +183,4 @@ default.main-menu-items:
172183
<5> `title`: Specifies a name for `default.references`
173184
<6> `icon`: Displays the `school` icon.
174185
<7> `to`: Redirects `default.references` to the `/references` page.
186+
<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

Comments
 (0)