Forums / Developer / Popups in eZ3.6.0
Massimiliano Bariola
Monday 04 July 2005 7:54:06 am
hi, can anyone post a complete example of how to create a clickable thumbnail image which will open a popup window? I browsed the forum archives, but I was unable to make the few examples work.
I browsed the standard design directory, and I saw that there are some popup and fullscreen templates, but it seems they are legacies of older versions. Presently, the only way I can think of, is to put a switch statement into base_layout.tpl and pass a "popup" parameter to it, but I think it's the ugliest solution.
Any ideas?
bye
Olivier Pierret
Monday 04 July 2005 8:16:00 am
We have this code in the full view template for our picture/image class.
This open the image full size (we point directly to the actual file) in a "blank" window. Use javascript openwindow if you want to set the popup window size.
good luck
olivier
<a href={$node.data_map.picture.content[original].full_path|ezroot} target="_blank"> {attribute_view_gui attribute=$node.data_map.picture image_class=imagelarge} </a>
Tuesday 05 July 2005 4:13:25 am
Hi Olivier,
I tried your solution and indeed works. But -- how is it possible to use a popup template which will contain the original image? (e.g. a fixed logo, and a close link too maybe ...). any ideas?