History: Image Tracker Field
Source of version: 14 (current)
Copy to clipboard
! Image Tracker Field This tracker field type allows you to add image in a tracker. The image can be seen in the tracker items list or in a item view. ||xListSize|pixels number|optional|maximum width of the image in tracker items list ( automatically rescaled if the upload image is larger) yListSize|pixels number|optional|maximum heigth of the image in tracker items list ( automatically rescaled if the upload image is higher) xDetailsSize|pixels number|optional|maximum width of the image in item view (automatically rescaled if the upload image is larger) yDetailsSize|pixels number|optional|maximum width of the image in item view (automatically rescaled if the upload image is higher) uploadLimitScale|pixel number|optional|maximum size of a picture. If the image is larger or higher, the uploaded image will be rescaled automatically- the initial image will not be saved shadowbox|string or number|optional|allows a shadowbox when clicking on the img: special values: item, individual(see below)| tw>=3.0 || For instance this option field {CODE()}100,100,400,400,,item {CODE} will limit the picture size to 100 in list mode, to 400 in item view, and will allow a shadowbox popup The shadowbox option allows you if the feature is activated ((Shadowbox)) to provide a popup on the image. * If the value of the parameter is 'individual', the popup will concern only this image. * If the value is 'item', the popup will have a prev/next link with the other displayed images of type shadowbox=item of the item. ** trick with the pretty trackers: if you want to display only one image of the item but have the popups displaying all the images, you can do something like this in the template {CODE()} {$f_1} <div style="display:none"> {$f_2} {$f_3}</div> {CODE} where f_1, f_2, f_3 are 3 images fields with type shadowbox=item * If the value is another string or numeric, the popup will have a prev/next link with the other images of the page of type shadowbox=this same value ** This can be used to popup together all the images of a tracker list. __Administration__ The images are stored in the sub directory img/trackers. The filenames are encoded at the upload. __ Note for IIS users __ Tiki stores images without any extension, Apache handles this fine, but IIS uses the file extension to determine which handler it should use for the filetype. Extra configuration to make IIS interpret these extensionless files is needed. __Solution__ On the /img/trackers directory add a mimetype handler for "*" (on newest IIS (7.5) use "." instead) and set it to application/octet-stream this way IIS will look on the content type instead of the file extension. {REMARKSBOX(type="information" title="File extensions added")}Starting in Tiki 11.1, the tracker images get the extension set. Then no additional settings are needed to use the tracker image type on IIS.{REMARKSBOX}