Debian Codegraph @

docs/content/en/_common/menu-entry-properties.md

raw
1 ---
2 _comment: Do not remove front matter.
3 ---
4
5 <!--
6 This description list intentionally excludes the `pageRef` and `url` properties. Add those properties manually after using the include shortcode to include this list.
7 -->
8
9 `identifier`
10 : (`string`) Required when two or more menu entries have the same `name`, or when localizing the `name` using translation tables. Must start with a letter, followed by letters, digits, or underscores.
11
12 `name`
13 : (`string`) The text to display when rendering the menu entry.
14
15 `params`
16 : (`map`) User-defined properties for the menu entry.
17
18 `parent`
19 : (`string`) The `identifier` of the parent menu entry. If `identifier` is not defined, use `name`. Required for child entries in a nested menu.
20
21 `post`
22 : (`string`) The HTML to append when rendering the menu entry.
23
24 `pre`
25 : (`string`) The HTML to prepend when rendering the menu entry.
26
27 `title`
28 : (`string`) The HTML `title` attribute of the rendered menu entry.
29
30 `weight`
31 : (`int`) A non-zero integer indicating the entry's position relative the root of the menu, or to its parent for a child entry. Lighter entries float to the top, while heavier entries sink to the bottom.