Loading...
 
Skip to main content

History: Group selector

Preview of version: 7

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 Selectorassociates the item field to a group.
automatic feedingdefaultan open selection from the whole list of groupnames. N.B. do not use this feature if the group list is private.
1assign item to its creator group
2assign 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.

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 drawback in TW5.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 [[http://dev.tikiwiki.org/tiki-view_tracker_item.php?itemId=3200&trackerId=5&show=view|a related bug tracker item]].

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'

History

Advanced
Information Version
Marc Laporte 14
View
Bernard Sfez / Tiki Specialist Added a warning about using it with the admin login 13
View
Marc Laporte 12
View
Marc Laporte 11
View
luciash d' being 🧙 Mass search and replace 9
View
Gergely 8
View
Gergely 7
View
Gergely 6
View
sylvie 5
View
sylvie 4
View
sylvie 3
View
mlpvolt 2
View
mlpvolt 1
View