2 title: User Group Option Package Installation Plugin
4 permalink: package_pip_user-group-option.html
9 Registers new user group options (“permissions”).
10 The behaviour of this package installation plugin closely follows the [option](package_pip_option.md) PIP.
12 ## Category Components
14 The category definition works exactly like the option PIP.
18 The fields `hidden`, `supporti18n` and `requirei18n` do not apply.
19 The following extra fields are defined:
21 ### `<(admin|mod|user)defaultvalue>`
23 Defines the `defaultvalue`s for subsets of the groups:
25 | Type | Description |
26 | ----- | ---------------------------------------------------------------------------------------------- |
27 | admin | Groups where the `admin.user.accessibleGroups` user group option includes every group. |
28 | mod | Groups where the `mod.general.canUseModeration` is set to `true`. |
29 | user | Groups where the internal group type is neither `UserGroup::EVERYONE` nor `UserGroup::GUESTS`. |
33 Makes the option unavailable for groups with the group type `UserGroup::GUESTS`.
37 All relevant language items have to be put into the `wcf.acp.group` language item category.
41 If you install a category named `user.foo`, you have to provide the language item `wcf.acp.group.option.category.user.foo`, which is used when displaying the options.
42 If you want to provide an optional description of the category, you have to provide the language item `wcf.acp.group.option.category.user.foo.description`.
43 Descriptions are only relevant for categories whose parent has a parent itself, i.e. categories on the third level.
47 If you install an option named `user.foo.canBar`, you have to provide the language item `wcf.acp.group.option.user.foo.canBar`, which is used as a label for setting the option value.
48 If you want to provide an optional description of the option, you have to provide the language item `wcf.acp.group.option.user.foo.canBar.description`.