Wiki source code of Group Management

Last modified by Ecaterina Moraru (Valica) on 2020/01/28

Hide last authors
Manuel Smeria 28.4 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
Silvia Macovei 25.1 4
5 {{info}}
Ecaterina Moraru (Valica) 33.1 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).
Silvia Macovei 25.1 7 {{/info}}
EvelinaSlatineanu 3.1 8
Silvia Macovei 25.2 9 = Adding groups to your wiki =
EvelinaSlatineanu 3.1 10
Manuel Smeria 28.4 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 (((
Silvia Macovei 28.3 18 {{image reference="CreateGroup.png"/}}
Manuel Smeria 28.4 19 )))
EvelinaSlatineanu 6.1 20
Silvia Macovei 25.2 21 = Editing an existing group =
EvelinaSlatineanu 6.1 22
Manuel Smeria 28.4 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 (((
Silvia Macovei 28.3 38 {{image reference="EditGroup.png"/}}
Manuel Smeria 28.4 39 )))
EvelinaSlatineanu 11.1 40
Silvia Macovei 25.2 41 = Deleting an existing group =
EvelinaSlatineanu 11.1 42
Manuel Smeria 28.4 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 (((
Silvia Macovei 28.3 48 {{image reference="DeleteGroup.png"/}}
Manuel Smeria 28.4 49 )))
50 (((
Silvia Macovei 25.1 51 {{info}}
Manuel Smeria 28.4 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.
Silvia Macovei 25.1 53 {{/info}}
Manuel Smeria 28.4 54 )))
AdrianFita 27.1 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
Manuel Smeria 28.4 60 You have to edit ##XWiki.AdminGroupsSheet## for groups.
AdrianFita 27.1 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.

Get Connected