History: API Tracker
Preview of version: 1
- «
- »
API Tracker
Tiki support 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
~tc~ This displayed only the field childrenIdNumber in the create item form. Need a fix ?
To set a link that will create a new item and insert a value in a field
Here we use it to create an item with a specific value for field.
(replace "childrenIdNumber" with your category field permaname)
Copy to clipboard
tiki-tracker-insert_item?trackerId=2&next=tiki-tracker-insert_item%3FtrackerId%3D3&field~childrenIdNumber=17
To set a link that will create a new item and force-insert and hide a value for a field
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
To set a link that will open the update modal for an existing item and insert a value for a field
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