Loading...
 
Skip to main content

History: User_Tracker

Source of version: 14 (current)

Copy to clipboard
            !! User Tracker profile
{REMARKSBOX(title=Please Note)}From 2015 onwards, you can also install an "all-in-one" profile named "__User_Trackers__" (note the ending "__s__" from the plural word) which does create working instances of User Trackers with lot of fields predefined for you to get started more easily (if you prefer installing lot of fields in one click and delete those which you do not actually need later): __https://profiles.tiki.org/User_Trackers__
{REMARKSBOX}

-=About=-
This ''mini profile'' creates a basic User Tracker. It can be required and included by other Profiles. The tracker includes one __mandatory field__ for the user login name which is necessary to make the user tracker work properly. It has modular concept so the other fields can be included as [http://profiles.tiki.org/Profile+dependencies|profile dependencies] and are __completely optional__. Feel free to create your own fields for this User Tracker profile as "Profile snippets" and then call them via dependencies together with this profile from your own profile.

!!! Global Preferences
Make sure Trackers feature is on:
{CODE(caption=YAML,wrap=1)}
preferences:
 feature_trackers: y
 userTracker: y
 user_trackersync_trackers: [ $user_tracker ]
{CODE}

!!! The User Tracker

!!!! Object Permissions
{CODE(caption=YAML)}
permissions:
 Registered:
  user_tracker: $user_tracker   
  user_tracker_field: $user_name
  objects:
   -
    type: tracker
    id: $user_tracker
    allow: [ create_tracker_items ]
{CODE}

!!!! User Tracker
{CODE(caption=YAML,wrap=1)}
objects:
 -
  type: tracker
  ref: user_tracker
  data:
   name: $profilerequest:User Tracker Name:$User Tracker$
   description: $profilerequest:Tracker Description:$Additional information about users$
   default_status: open
   allow: [ one_item_per_user, creator_modification ]
   hide_list_empty_fields: y
   show: [creation_date, modification_date, list_modification_date ]
   sort_default_order: asc
{CODE}

!!!! General Fields (Mandatory)
{CODE(caption=YAML,wrap=1)}
objects:
 -
  type: tracker_field
  ref: user_name
  data:
   name: $profilerequest:Name for the "User Login" field:$User Login$
   tracker: $user_tracker
   type: user
   flags: [ searchable, public, link, list, mandatory ]
   options: 1
{CODE}

{REMARKSBOX(title=Tip)}
To get more fields applied just search for __"User_Tracker_"__ in your Profile control panel and apply the fields you like from the results.
{REMARKSBOX}

!!! Related
Profiles re-using this mini profile:
* https://profiles.tiki.org/User_Profile
* https://profiles.tiki.org/User_Tracker_Business