Loading...
 
Skip to main content

History: Pretty_Tracker_Demo

Source of version: 6

Copy to clipboard
            This profile is intended to show users how to create Pretty Trackers using Tiki Profiles. 

Other pages to review when using this profile:
*((pretty_tracker_dynamic_ref_trackerlist_include))
*((pretty_tracker_dynamic_ref_tpl_include))

{maketoc}

!!Trackers
{CODE(caption=>YAML)}
preferences:
 feature_trackers: y
{CODE}

__Groups & Permissions__
{CODE(caption=>YAML, wrap=1)}
permissions:
 Anonymous:
  allow: [ ]
  deny: [ view ]
 Registered:
  description: Will be ignored because group is already created
  allow:
   - create_tracker_items
   - list_trackers
   - view_trackers
   - watch_trackers
  deny: [  ]
 Editors:
  description: Trusted users
  allow:
   - modify_tracker_items
 Admins:
  description: Have all rights
  allow: [ admin ]
{CODE}

__Company Directory Tracker Definition__
This Tracker is setup to be used as a Company Directory
{CODE(caption=>YAML,wrap=>1)}
objects:
 -
  type: tracker
  ref: directory_tracker
  data:
   name: Company Directory
   description: Company Directory
   default_status: open
   show: [ creation_date, modification_date, list_modification_date ]
 -
  type: tracker_field
  ref: directory_first_name
  data:
   name: First Name
   tracker: $directory_tracker
   type: text_field
   flags: [ searchable, public, list, mandatory, link ]
   order: 10
 -
  type: tracker_field
  ref: directory_last_name
  data:
   name: Last Name
   tracker: $directory_tracker
   type: text_field
   flags: [ searchable, public, list, mandatory, link ]
   order: 20 
 -
  type: tracker_field
  ref: directory_position
  data:
   name: Position
   tracker: $directory_tracker
   type: text_field
   flags: [ searchable, public, list, mandatory ]
   order: 30 
 -
  type: tracker_field
  ref: directory_phone
  data:
   name: Phone
   tracker: $directory_tracker
   type: text_field
   flags: [ searchable, public, list, mandatory ]
   order: 40 
 -
  type: tracker_field
  ref: directory_email
  data:
   name: E-Mail
   tracker: $directory_tracker
   type: email
   flags: [ searchable, public, list, mandatory ]
   order: 50 
 
{CODE}

__Sample data for Company Directory__

{CODE(caption=>YAML,wrap=>1)}
objects:
 -
  type: tracker_item
  ref: directory_employee_001
  data:
   tracker: $directory_tracker
   status: open
   values:
    - [ $directory_first_name, John ]
    - [ $directory_last_name, Doe ]
    - [ $directory_position, President ]
    - [ $directory_phone, (555) 444-3322 ]
    - [ $directory_email, jdoe@company.com ]
 -
  type: tracker_item
  ref: directory_employee_002
  data:
   tracker: $directory_tracker
   status: open
   values:
    - [ $directory_first_name, Mary ]
    - [ $directory_last_name, Smith ]
    - [ $directory_position, Secratery ]
    - [ $directory_phone, (555) 777-3322 ]
    - [ $directory_email, msmith@company.com ]
 
{CODE}

!Wiki
__Wiki Pages__
{CODE(caption=>YAML,wrap="1")}
objects:
  -
    type: wiki_page
    ref: company_intranet_company_directory_include
    data:
      name: Company Directory
      description: Company Directory
      lang: en
      mode: create_or_update
      content:wikicontent:pretty_tracker_dynamic_ref_trackerlist_include
  -
    type: wiki_page
    ref: wiki_template_include
    data:
      name: template
      lang: en
      mode: create_or_update
      content:wikicontent:pretty_tracker_dynamic_ref_tpl_include

{CODE}

        

History

Information Version
Mon 07 of Jun, 2010 17:54 GMT-0000 Xavier de Pedro added instructions page to be shown just after the profile is applied. thanks pascalstjean for this nice example which allowed me to get a pretty tracker working in profile r_test 15
Sat 08 of May, 2010 15:03 GMT-0000 luciash d' being 🧙 typo [rollback version 8] 14
Mon 07 of Jun, 2010 07:31 GMT-0000 luciash d' being 🧙 13
Mon 07 of Jun, 2010 07:23 GMT-0000 luciash d' being 🧙 12
Wed 02 of Jun, 2010 12:39 GMT-0000 Xavier de Pedro [rollback version 9] 11
Sun 06 of Jun, 2010 18:21 GMT-0000 Xavier de Pedro wrong syntax for that perm on local object. Removing for the time being 10
Wed 02 of Jun, 2010 12:39 GMT-0000 Xavier de Pedro 9
Sat 08 of May, 2010 15:03 GMT-0000 luciash d' being 🧙 typo 8
Sat 08 of May, 2010 14:28 GMT-0000 Pascal St-Jean 7
Sat 08 of May, 2010 14:28 GMT-0000 Pascal St-Jean 6
Sat 08 of May, 2010 14:18 GMT-0000 Pascal St-Jean 5
Sat 08 of May, 2010 13:42 GMT-0000 Pascal St-Jean 4
Sat 08 of May, 2010 13:39 GMT-0000 Pascal St-Jean 3
Sat 08 of May, 2010 13:31 GMT-0000 Pascal St-Jean 2
Sat 08 of May, 2010 13:29 GMT-0000 Pascal St-Jean 1