clickable thumbnail

Author Message

Michael Zielinski

Tuesday 05 July 2005 3:29:07 am

Hi,
On one of the sites I am working on I would like to have a thumbnail representation of the actual image included in the article. When clicking on that thumbnail the full sized image is opened in another window. I know that I can use href in the img tag but how do I find out what the actual path to the image (saved in Media library) is?

Thanks
Michael

Massimiliano Bariola

Tuesday 05 July 2005 3:49:18 am

Hi,

AFAIK you should not need the URL to do that. you simply call your
{attribute_view_gui attribute=$node.object.data_map.your_img_name image_class=your_image_size_class}

where your_img_name is the ezimage identifier of the image attribute of your node (provided that it's conglobated into another object; if not, just $node.name should do, i m not sure, try it)

and your_image_size_class is the class identifier you'll find in your settings/standard/image.ini file, or override thereof.

Bear in mind that as the image you are accessing is in the Media library, anonymous users will probably not be able to see it, as they don't usually have access rights to that folder. (at least, I had that problem and I have still not found a way around it except by via of saving the images in the standard section).

and now my question .... how do you do a good popup window without using the page_layout.tpl? have you found a way of doing it ?

bye

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.