Forums / Developer / Reg : Image in 3.5.2
tagnet hopetalk
Friday 07 October 2005 12:27:15 am
I have used the codingimage name = resource_thumbnail
{attribute_view_gui attribute=$item.object.data_map.resource_thumbnail image_class="small"}
to display the image.But this is not displaying the image in both 3.5.1 and 3.5.2 version.Coul you please help me in this case , How to display the image. Please send me the genral coding in 3.5.2 Thank You.
Łukasz Serwatka
Sunday 09 October 2005 11:23:12 pm
Your code is correct if you displaying images in {section} loop, or if you are sure that $item variable contains correct data (for fetch for example).
Try with:
{attribute_view_gui attribute=$node.object.data_map.resource_thumbnail image_class=small}
That code display small image for current node. Of course resource_thumbnail attribute must be image datatype.
Also make sure that GD or ImageMagick libs are installed and works correct.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Thursday 13 October 2005 8:14:08 am
Hi,Thanks for your help, I have also used
$node.object.data_map.resource_image image_class="large"
But it does not work.I have used ImageMagick, but i dont know how to check whether it works or not.I have used
[ImageMagick] IsEnabled=true ExecutablePath=/usr/binExecutable=convert
[small]Filters[]=geometry/scale=100;100
[medium]Filters[]=geometry/scale=200;200
[large] Filters[]=geometry/scale=300;300in image.ini.append.
Please help me in this case.