Skip to content

Commit a1e615b

Browse files
committed
taxonomy.md: Enhance YAML examples
- Don't include `assigned_content_tab` too soon. - Highlight `assigned_content_tab` and `register_main_menu` additions.
1 parent 8cd909e commit a1e615b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/content_management/taxonomy/taxonomy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Next, under the `ibexa_taxonomy.taxonomies` [key](configuration.md#configuration
3535

3636
``` yaml
3737
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 0, 2) =]] # existing keys
38-
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 17) =]]
38+
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 16) =]]
3939
```
4040

4141
Replace `<content_categories_remote_id>` with the new container's location remote ID.
@@ -62,7 +62,7 @@ You can hide the **Content** tab in the **Categories** view.
6262

6363
In configuration add `assigned_content_tab` with the flag `false` (for other taxonomies this flag is by default set to `true`):
6464

65-
``` yaml
65+
``` yaml hl_lines="11"
6666
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 0, 2) =]] # existing keys
6767
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 17) =]]
6868
```
@@ -72,7 +72,7 @@ In configuration add `assigned_content_tab` with the flag `false` (for other tax
7272
By default, for each taxonomy, a menu item is added to the main menu.
7373
You can hide this menu item by setting a value of the `register_main_menu` configuration key:
7474

75-
``` yaml
75+
``` yaml hl_lines="6"
7676
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 0, 2) =]] # existing keys
7777
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 9, 10) =]] # existing keys
7878
[[= include_file('code_samples/taxonomy/config/packages/ibexa_taxonomy.yaml', 17, 18) =]]

0 commit comments

Comments
 (0)