Loading...
 
Skip to main content

History: Pretty Tracker HowTo

Source of version: 8 (current)

Copy to clipboard
            ! 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 [Adding-items-to-a-tracker|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:
+ {CODE()}__{$f_1}__ ---{CODE}
+ (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" with%%%{CODE()}List of my Fruit: {trackerlist trackerId=1 wiki=fruit_template}{CODE}
+ (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.