Pretty Tracker HowTo
A "Pretty Tracker" is a prettier way to list (or input) your Tracker data.
To create a "Pretty Tracker" in Tiki you need:
- One Tracker with at least one field
- One Wiki page with PluginTrackerlist (to list the data) or define a template directly in the Tracker (or a Wiki page with PluginTracker to input the data to a Tracker using a pretty formatted form)
- One template which tells how the data (or input fields) should be formatted (can be a Wiki page or *.tpl file)
Here's step by step guide (using the TrackerList wikiplugin and a Wiki page as a template):
- Create a Tracker and note the Tracker ID and then create some field(s) for it and note the Field(s) ID(s) (name the Tracker for example "Fruit" and the created field(s) can be "Fruit Name" of type text input, etc.)
- Insert some new Tracker Items there after creating the Tracker, e.g. three items: Apple, Pear and Orange
- Create a Wiki page named "fruit_template" with at least one {$f_X}, for example:
Copy to clipboard__{$f_1}__ ---
(Assuming the "Fruit Name" field has ID 1) - Set the permissions for that template page to tiki_p_use_as_template and remove tiki_p_edit and tiki_p_view for Anonymous so your visitors cannot edit and view the template page
- Create another Wiki page "Fruit List" withCopy to clipboardList of my Fruit: {trackerlist trackerId=1 wiki=fruit_template}
(Assuming the "Fruit" Tracker has ID 1)
As a result you should now see the three fruits listed in bold on the page "Fruit List" one under each other and divided by horizontal line according to the template:
List of my Fruit:
Apple
Pear
Orange
That's it ! 😊
For more details see Pretty Tracker page.