Skip to content

Commit 7548853

Browse files
ms2addabrt
authored andcommitted
Document hiding taxonomy menu item (#2459)
* Document hiding taxonomy menu item * Apply suggestions from code review --------- Co-authored-by: Tomasz Dąbrowski <[email protected]>
1 parent 8fbf438 commit 7548853

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ ibexa_taxonomy:
1515
parent: parent_category
1616
name: name
1717
assigned_content_tab: false
18+
register_main_menu: false

docs/content_management/taxonomy/taxonomy.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ In configuration add `assigned_content_tab` with the flag `false` (for other tax
6767
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 17) =]]
6868
```
6969

70+
### Hide menu item
71+
72+
By default, for each taxonomy, a menu item is added to the main menu.
73+
You can hide this menu item by setting a value of the `register_main_menu` configuration key:
74+
75+
``` yaml
76+
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 0, 2) =]] # existing keys
77+
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 10) =]] # existing keys
78+
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 17, 18) =]]
79+
```
80+
7081
For more information about available functionalities of tags, see [User Documentation]([[= user_doc =]]/taxonomy).
7182

7283
## Hide delete button on large subtree

0 commit comments

Comments
 (0)