History: Group selector
Preview of version: 5
Group selector
User, Group, IP selectors are tracker field types used in the trackers feature to attribute 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.
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. |
Display limitation:
tikiwiki>=1.10
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.
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
tikiwiki>=3.0
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'