Displaying Trackers in Wiki Pages
In addition to using the tracker interface, you can list tracker items directly in wiki pages.
On the Visitor Information Form page, let's add a list of the visitors who have completed the form.
- Edit the Visitor Information Form page that you created earlier.
- In the Edit area, type:
!!List of visitors {TRACKERLIST(trackerId=>1,fields=>1:7, showtitle=>n, showfieldname=>y, sort_mode=>lastModif_desc, status=>opc)}Notice{TRACKERLIST}
This example uses the Trackerlist plugin to list the tracker items. The options used:- trackerId: The ID of the tracker.
- fields: The fields from the tracker to include in the form. Here, we have included all the available fields, in order, but you could change this.
Be sure to use the field's ID and not its order. - showtitle: Specifies if Tiki will display the tracker's name before the table.
- showfieldname: Tiki will include a column heading for each field, based on the tracker item's name.
- sortmode: By default, Tiki will sort the list by the Last Modified Date (in ascending order). You can click any column heading to resort the table.
- stats: Tiki will include all items with the status of O (open), P (pending), and C (closed).
Note
See the http://doc.tiki.org/PluginTrackerlist for complete information on the Tracker list plugin and all available options. - Save the page.
The Visitor Information Page should now look similar to this:
Each time you add a new tracker item, it will be added to the List of Visitors.