attribute_view_gui Image Size?

Author Message

Jan Bengia

Thursday 21 July 2005 12:42:51 pm

Hi,
in my template I have the following line:
{attribute_view_gui attribute=$node.object.data_map.image image_class=original}

The problem: Any parameters (image_class, href, etc.) are ignored. The image is shown - but not in the desired size.
For testing purposes I changed the default image_class in the ezimage.tpl: Still no change in displaying.

I have no overrides for the ezimage.tpl and not changed any image.ini.

thank!
orbi

Eivind Marienborg

Friday 22 July 2005 12:39:35 am

I assume you have tried clearing your cache?

Jan Bengia

Friday 22 July 2005 12:47:41 am

Hi,
yes, cleared complete cache ...

mg
orbi

Nuffstress Group

Tuesday 25 October 2005 2:03:53 pm

I finally figured it out. More has to be added to $node.object.data_map.image.

This is the line that should be used
$node.object.data_map.image.content.data_map.image

Therefore the attributes i.e image_class, alignment etc would not be ignored. Therefore the full line should be:

{attribute_view_gui alignment=right attribute=$node.object.data_map.image.content.data_map.image image_class=medium}

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