Loading...
 

Group selector


User, Group, IP selectors are Tracker Field Types used in the trackers feature to attribute tracker items to specific users. Adding a name to a tracker item is necessary but not sufficient to create special viewing and editing privileges - often used with User Tracker, registration tracker or Group tracker

The page Adding fields to a Tracker explains how the fields, (columns or questions) of a tracker are set up.

 Do not use the admin user with auto-assign
Using this field in combination with user tracker registration may lock your admin user out of the system when changing a user’s group if logged as admin.

It is suggested first to create a second admin with a different name and good password (of course) for safeties reason (good 2 have 2 access) and that you use a "super user" or the real user you target during your test of behaviour (but mot admin).

The Group Selector

The automatic feeding option of this field type works exactly like the User Selector feeding option except that instead of the user name, it uses the default group of the user.

Group Selector associates the item field to a group.
automatic feeding default an open selection from the whole list of groupnames. N.B. do not use this feature if the group list is private.
1 Assign item to its creator group
2 Assign item to "last modified by" - the field is filled up by the item creator or editor group name.
groupId numeric limit the groups to the groups including this group ID


Display limitation: If you want only display some groups for a group selector field with no automatic feeding, you can checked the list you want while defining the field.

Note on how to get auto-assignment work in the tracker plugin : If it did not work as you expected, you could hide the field for everyone except for admin, and add it to the plugin's fields parameter. This works for both the group and the user selector fields. One current drawback (in Tiki5.0B1): the field labels are shown in both cases. As long as it is not fixed, one could use pretty trackers to circumvent this problem. Find more details in a related bug tracker item.

You can access the item attached to your default group with the link

tiki-view_tracker_item.php?view=+group

Automatic creation of a group with an item

You can decide to create automatically a new group each time an item is created. The option is in the tracker admin panel. The new group name will be the concatenation of the tracker name, a space, and the itemId.
This is convenient when you want to have an item that can be view/edit only by a group.
The user who added the item will be automatically assigned to the group. With such plugin like PluginInvite, the user will be then able to invite other user in the group and so these users will be able to modify the item.
If the group with the tracker name exists, then all these new groups will include this group. The group will have automatically the group tracker option sets up for this tracker.

If you want to have the item only viewable and editable by the group, you need to set up special permission on the tracker (or configure the global permissions if all your trackers needs the same behavior.
tiki_p_create_trackers_items for Registered.
As it is a group tracker, you do not need to set the tiki_p_modify_tracker_items.
You need also to set in admin->tracker the option 'group can modify'

List Slides