Sunday 15 January 2006 1:28:12 am
I also got this message some time ago.
As far as I remind I updated to a newer version and it was gone, but the code of your template also looks a bit confusing at the first sight... Things you can also check:
1. clear all caches
2. check directory permissions to var/ 3. check your image.ini.append.php I would recommed to using the following: javascript.js
function imagezoom(w,h,url) {
var Fensteroptionen = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";
var popupWindow = window.open(url, 'Imagezoom', Fensteroptionen + ',width=' + w + ',height=' + h);
var focus = popupWindow.focus();
}
template code:
<a href='javascript:imagezoom(800,600,"/{$node.data_map.image.content[original].url}")' >
{attribute_view_gui image_class=original attribute=$node.object.data_map.image alt=$node.name}
</a>
This will open a popup window with the original image an static size 800,600 and sets the focus to it. Keep in mind that the image attribute is called 'image' in this example. You may also make the with an height of teh popup dynamic by using the following template code:
<a href='javascript:popup({$node.data_map.image.content[original].width|sum(20)},{$node.data_map.image.content[zoomimage].height|sum(30)},"/{$node.data_map.image.content[original].url}")' >
For having nice images with the same size I would to edit your image.ini.append.php and add the following:
AliasList[]=zoomimage
[zoomimage]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=600;500
and replace the [original] imageclass with [zoomimage] in your template code.
Another (nicer) way of displaying the images in a popup window is to create a popup pagelayout in ez. But thats a bit more complicated. I hope this helps.
Mit freundlichen Grüßen
Best regards
Norman Leutner
____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh
|