Loading...
 

API Tracker

Tiki supports URL arguments and they can be used to interact with the Trackers and the plugins displaying or creating items. For example you can define a default value for a field in a customSearch or force the insertion of a value when creating an item.

Examples


Allow creation, edition and deletion of tracker items in a modal pop-up


This is the html syntax for use in a smarty template file.

Creation of an item in tracker 1
Copy to clipboard
<a class="click-modal tips" title=":Create new item" data-role="button" data-inline="true" href="tiki-tracker-insert_item?trackerId=1">Create new item</a>
Edition of item 3 in tracker 1
Copy to clipboard
<a class="click-modal tips" title=":Edit item" data-role="button" data-inline="true" href="tiki-tracker-update_item?trackerId=1&itemId=3">Edit item 3</a>
Deletion of item 3 in tracker 1
Copy to clipboard
<a class="click-modal tips" title=":Remove item" data-role="button" data-inline="true" href="tiki-tracker-remove_item?trackerId=1&itemId=3">Remove item 3</a>

Create/Update some fields of an item using editable


If you want to update two fields which permanentNames are name and surname and leave the other fields unchanged:

Edition of two fields of item 3 in tracker 1
Copy to clipboard
tiki-tracker-update_item?trackerId=1&itemId=3&editable[]=name&editable[]=surname

(same principle for item creation)

Pre-fill field values using fields

Note: once you use fields, only the fields which you specifically mention will be available for edition.

Edition of three fields of item 3 in tracker 1 with a prefilled value
Copy to clipboard
tiki-tracker-update_item?trackerId=1&itemId=3&fields~name&fields~surname&fields~education=None
Creation of item 3 in tracker 1 with a prefilled value and two extra fields
Copy to clipboard
tiki-tracker-insert_item?trackerId=1&itemId=3&fields~name&fields~surname&fields~education=None

This will prefill the "education" field and it will display fields name and surname as empty fields. It is probably perfect for creating a new item but not what you would expect for editing an existing item (loss of previous values).

A better solution which does not lose previously entered content:

Edition of three fields of item 3 in tracker 1 with one prefilled value
Copy to clipboard
tiki-tracker-update_item?trackerId=1&itemId=3&editable[]=name&editable[]=surname&editable[]=school&fields~education=None



Here we use it to create an item with a specific category Id.
(replace "childrenIdNumber" with your category field permaname)

Copy to clipboard
tiki-tracker-insert_item?trackerId=2&next=tiki-tracker-insert_item%3FtrackerId%3D3&forced~childrenIdNumber=17

All fields can be edited except the one which is forced which will not be shown.

This can be used with a variable like a field from a plugin list. Here we prefill the (user)name and hide it.The smarty replace modifier is required to remove extra space(s) added to the value(s)

Copy to clipboard
tiki-tracker-insert_item?trackerId=11&forced~paymentsFamilyName={$row.name|replace:' ':''}

Here we use it to create an item with a specific category Id.
(replace "permaname" with your category field permaname)

Copy to clipboard
tiki-tracker-update_item?trackerId=2&itemId=178&fields~childrenIdNumber=17

Status control with tiki-tracker-insert_item and tiki-tracker-update_item

code status of saved item is status selector displayed in pop-up window?
status=open open yes
status=pending pending yes
status=closed closed yes
status=0 default value in tracker properties No
nothing about status default value in tracker properties only if "show status" is set in tracker properties
Example
Copy to clipboard
tiki-tracker-insert_item?trackerId=57&editable[]=inscrContenuCmdCommande&status=closed

Updating a tracker field using POST

API Tracker Update Demo

doc.tiki.org

Get Started

Admin Guide User Guide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Elements
Mobile Tiki and Voice Tiki
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Tiki Manager
Trackers
Transitions
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki