Update `codebox` macro
[GitHub/WoltLab/woltlab.github.io.git] / docs / package / pip / user-profile-menu.md
1 # User Profile Menu Package Installation Plugin
2
3 Registers new user profile tabs.
4
5 ## Components
6
7 Each tab is described as an `<userprofilemenuitem>` element with the mandatory attribute `name`.
8
9 ### `<classname>`
10
11 The name of the class providing the tab’s behaviour,
12 the class has to implement the `wcf\system\menu\user\profile\content\IUserProfileMenuContent` interface.
13
14 ### `<showorder>`
15
16 <span class="label label-info">Optional</span>
17
18 Determines at which position of the tab list the tab is shown.
19
20 ### `<options>`
21
22 <span class="label label-info">Optional</span>
23
24 The 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.
25
26 ### `<permissions>`
27
28 <span class="label label-info">Optional</span>
29
30 The 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.
31
32 ## Example
33
34 {jinja{ codebox(
35 title="userProfileMenu.xml",
36 language="xml",
37 filepath="package/pip/userProfileMenu.xml"
38 ) }}