Wiki source code of Group Management
Last modified by Manuel Leduc on 2024/04/22
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{box cssClass="floatinginfobox" title="**Contents**"}} | ||
2 | {{toc/}} | ||
3 | {{/box}} | ||
4 | |||
5 | {{info}} | ||
6 | These instructions assume you're using XWiki 1.2 or later with the **[[Colibri, Albatross or Toucan skins>>Documentation.AdminGuide.Skins]]** (screenshots for Colibri). | ||
7 | {{/info}} | ||
8 | |||
9 | = Adding groups to your wiki = | ||
10 | |||
11 | 1. Log in as an administrator | ||
12 | 1. Hover over "Wiki" and click on "Administer Wiki" | ||
13 | 1. Click on the "Groups" link to bring up an overview of all the groups | ||
14 | 1. Click on the "Add new group" button to open the group creation lightbox as shown on the image below | ||
15 | 1. Fill in the group name | ||
16 | 1. Click the "Create Group" button | ||
17 | ((( | ||
18 | {{image reference="CreateGroup.png"/}} | ||
19 | ))) | ||
20 | |||
21 | = Editing an existing group = | ||
22 | |||
23 | 1. Log in as an administrator | ||
24 | 1. Hover over "Wiki" and click on "Administer Wiki" | ||
25 | 1. Click on the "Groups" link to bring up an overview of all the groups | ||
26 | 1. You have two options: | ||
27 | 11. Click the group name for the group you want to edit | ||
28 | 11*. On the group page click "Edit" in the top left corner (this will open a page where you can edit the members of the group (if any)) | ||
29 | 11. Click on the small yellow pencil near the group you want to edit (this will open a lightbox with the members of that group) | ||
30 | 1. Here's how you can add a new user to the group: | ||
31 | 1*. Start typing the user's name in the "Users to add" input field. After starting to type, if the user exists, a suggest feature will be displayed, containing a list of all the users whose names contain the typed letters, so you can select the user you want from that list | ||
32 | 1*. Click "Add" | ||
33 | 1. Here's how you can add a subgroup to the current group: | ||
34 | 1*. Start typing the group's name in the "Subgroups to add" input field. After starting to type, if the group exists, a suggest feature will be displayed, containing a list of all the groups whose names contain the typed letters, so you can select the group you want from that list | ||
35 | 1*. Click "Add" | ||
36 | 1. You can delete a user or a group by clicking on the red "X" button as shown below: | ||
37 | ((( | ||
38 | {{image reference="EditGroup.png" width="650"/}} | ||
39 | ))) | ||
40 | |||
41 | = Deleting an existing group = | ||
42 | |||
43 | 1. Log in as an administrator | ||
44 | 1. Hover over "Wiki" and click on "Administer Wiki" | ||
45 | 1. Click on the "Groups" link to bring up an overview of all the groups | ||
46 | 1. Delete the group by clicking on the red "X" button for the group you wish to delete | ||
47 | ((( | ||
48 | {{image reference="DeleteGroup.png" width="650"/}} | ||
49 | ))) | ||
50 | ((( | ||
51 | {{info}} | ||
52 | When you delete a group, the users or groups in that group are not deleted. If you also want to delete the members of the group, you will have to delete them manually from the //Users// and the //Groups// pages. | ||
53 | {{/info}} | ||
54 | ))) | ||
55 | |||
56 | = Modify the number of groups displayed in the list = | ||
57 | |||
58 | This is valid as of v3.5 (I think it works on any 3.x version). | ||
59 | |||
60 | You have to edit ##XWiki.AdminGroupsSheet## for groups. | ||
61 | |||
62 | The page contains a line like this: | ||
63 | |||
64 | {{code}} | ||
65 | var ta = new XWiki.widgets.LiveTable("$url", "groupstable", callback); | ||
66 | {{/code}} | ||
67 | |||
68 | Just replace it with: | ||
69 | |||
70 | {{code}} | ||
71 | var ta = new XWiki.widgets.LiveTable("$url", "groupstable", callback, {limit: 100}); | ||
72 | {{/code}} | ||
73 | |||
74 | where 100 is the number of items displayed per page. |