From 8cd909ec8fac6df0c8f9d21fa28ff10d2fbffcca Mon Sep 17 00:00:00 2001 From: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> Date: Tue, 11 Jun 2024 11:41:12 +0200 Subject: [PATCH 1/2] Fix in the code (#2398) (cherry picked from commit 2d7091bfbb998a38e687ba289a6a51774a774fe1) --- code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml b/code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml index 860038f0fa..16ee3b9cf8 100644 --- a/code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml +++ b/code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml @@ -13,6 +13,6 @@ ibexa_taxonomy: field_mappings: identifier: category_identifier parent: parent_category - name: name_field + name: name assigned_content_tab: false register_main_menu: false From a1e615b4c1fe323f89238c638d1ef0e0a5f19e75 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:51:38 +0100 Subject: [PATCH 2/2] taxonomy.md: Enhance YAML examples - Don't include `assigned_content_tab` too soon. - Highlight `assigned_content_tab` and `register_main_menu` additions. --- docs/content_management/taxonomy/taxonomy.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/content_management/taxonomy/taxonomy.md b/docs/content_management/taxonomy/taxonomy.md index 1f97a36ac0..f33242e70b 100644 --- a/docs/content_management/taxonomy/taxonomy.md +++ b/docs/content_management/taxonomy/taxonomy.md @@ -35,7 +35,7 @@ Next, under the `ibexa_taxonomy.taxonomies` [key](configuration.md#configuration ``` yaml [[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 0, 2) =]] # existing keys -[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 17) =]] +[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 16) =]] ``` Replace `` with the new container's location remote ID. @@ -62,7 +62,7 @@ You can hide the **Content** tab in the **Categories** view. In configuration add `assigned_content_tab` with the flag `false` (for other taxonomies this flag is by default set to `true`): -``` yaml +``` yaml hl_lines="11" [[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 0, 2) =]] # existing keys [[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 17) =]] ``` @@ -72,7 +72,7 @@ In configuration add `assigned_content_tab` with the flag `false` (for other tax By default, for each taxonomy, a menu item is added to the main menu. You can hide this menu item by setting a value of the `register_main_menu` configuration key: -``` yaml +``` yaml hl_lines="6" [[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 0, 2) =]] # existing keys [[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 10) =]] # existing keys [[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 17, 18) =]]