Fullscreen
[Show/Hide Right Column]

Print

Tracker attachment field

This field allows you to add directly an attached file from the item input form (tiki-view_tracker.php or tiki-view_tracker_item.php) or from the TRACKER plugin.

The user will be prompted to browse and select a file. when the item is saved, the file is put in the tracker attachments. When the user views an item with such field, he will see an icon to download the file. When a user edits an item where he is the owner of the attachment, he can browse and upload another file or delete the file if he is the owner.

What it can look like in a input view:
Image

What it can look like in a tracker list:
Image

Parameters
listviewn or t or s or m or nt ... or ntsTo display before the download button some information like filename or type or size(use nts to display name+size+type). Be careful, this option will cost a query to the database for each attachment and can slow down terribly the performancetw>=1.10. m (tw>=4.0 will display the mediaplayer plugin on the attachement


Url

To download an attachment with an url, use
  • tiki-download_item_attachment.php?attId=1 (replace 1 with the attachment ID)
  • tiki-download_item_attachment.php?itemId=1&fieldId=2 (replace 1 with the itemId and 2 with the fieldId)

Configuration

  • the tracker must use attachments
  • the user must have the permission to attach files tiki_p_attach_trackers


Contributors to this page: sylvie7381 points  , Marc Laporte9123 points  and system .
Page last modified on Wednesday 05 January, 2011 16:01:44 UTC by sylvie7381 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

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



Tiki Newsletter

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