Commit | Line | Data |
---|---|---|
8659eb86 | 1 | # User Profile Menu Package Installation Plugin |
0b768461 | 2 | |
57e9b2c6 TD |
3 | Registers new user profile tabs. |
4 | ||
5 | ## Components | |
6 | ||
f4630405 | 7 | Each tab is described as an `<userprofilemenuitem>` element with the mandatory attribute `name`. |
57e9b2c6 TD |
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 | ||
ca3f33cf | 16 | <span class="label label-info">Optional</span> |
57e9b2c6 TD |
17 | |
18 | Determines at which position of the tab list the tab is shown. | |
19 | ||
20 | ### `<options>` | |
21 | ||
ca3f33cf | 22 | <span class="label label-info">Optional</span> |
57e9b2c6 TD |
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 | ||
ca3f33cf | 28 | <span class="label label-info">Optional</span> |
57e9b2c6 TD |
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 | ||
9a3f5fa3 | 34 | {jinja{ codebox( |
f778fce2 MS |
35 | title="userProfileMenu.xml", |
36 | language="xml", | |
37 | filepath="package/pip/userProfileMenu.xml" | |
9a3f5fa3 | 38 | ) }} |