Loading...
 
Skip to main content

Features / Usability


image tracker field, {$f_1} already contains the img tag? How to get only the path?

So I have a tracker with an image field. I'd like to create a img tag in the tracker template. I expected that {$f_1} contains only the path. But it has the the img tag also in it. How should I now change the size and other things of the image?

Is there some easy way to get only the path? Like, {$f_1.path} or something? Why does this variable contain the img tag anyway?

OK, so I resolved this with a minihack with the replace function in smarty. There really isn't a better way?

But another problem...I want the image to link to the full sized image. But images in trackers are saved like f35880ad9b1513, random string without the .jpg suffix. So the browser opens it as a binary file, not a image file. (firefox asks me if I want to save it somewhere, but doesn't know in what to open it)

The only way that comes to my mind is to change the tiki sources and let it save the images with a suffix. But I would be very thankfull if you have another solution...or at least if you would give me a hint where the piece of code is.

Bye,
Karinqe