Update `codebox` macro
[GitHub/WoltLab/woltlab.github.io.git] / docs / package / pip / acp-menu.md
CommitLineData
8659eb86 1# ACP Menu Package Installation Plugin
0b768461 2
f4630405
TD
3Registers new ACP menu items.
4
5## Components
6
7Each item is described as an `<acpmenuitem>` element with the mandatory attribute `name`.
8
9### `<parent>`
10
ca3f33cf 11<span class="label label-info">Optional</span>
f4630405
TD
12
13The item’s parent item.
14
15### `<showorder>`
16
ca3f33cf 17<span class="label label-info">Optional</span>
f4630405
TD
18
19Specifies the order of this item within the parent item.
20
21### `<controller>`
22
23The fully qualified class name of the target controller.
24If not specified this item serves as a category.
25
26### `<link>`
27
0263c556 28Additional components if `<controller>` is set,
f4630405
TD
29the full external link otherwise.
30
31### `<icon>`
32
c1b5007e 33!!! info "Use an icon only for top-level and 4th-level items."
f4630405
TD
34
35Name of the Font Awesome icon class.
36
37### `<options>`
38
ca3f33cf 39<span class="label label-info">Optional</span>
f4630405
TD
40
41The options element can contain a comma-separated list of options of which at least one needs to be enabled for the tab to be shown.
42
43### `<permissions>`
44
ca3f33cf 45<span class="label label-info">Optional</span>
f4630405
TD
46
47The permissions element can contain a comma-separated list of permissions of which the active user needs to have at least one for the tab to be shown.
48
49## Example
50
9a3f5fa3 51{jinja{ codebox(
f778fce2
MS
52 title="acpMenu.xml",
53 language="xml",
54 filepath="package/pip/acpMenu.xml"
9a3f5fa3 55) }}