Forums / Setup & design / How to view images in loop ?!
Selmah Maxim
Tuesday 15 November 2005 10:59:41 pm
Hi ..
how to view image with vars !?somthing like this :
<section loop=3> <img src={"$:item.number".jpg|ezimage()}> </section}
?!?
Łukasz Serwatka
Tuesday 15 November 2005 11:22:00 pm
ezimage() returns the input string prepended with the current image directory.
What exacly you want to do?
Image path you can display using:
{*image path in original size, valid for Image class*} {$node.object.data_map.image.content[original].url|ezroot}
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Wednesday 16 November 2005 5:53:47 am
I know this way... but the images in extension folder ... so this way will not work !
Wednesday 16 November 2005 6:11:01 am
ezimage() will work when you will put images to yourextension/design/(your_design)/images
Then add in yourextension/design.ini.append.php
[ExtensionSettings] DesignExtensions[]=yourextension
(your_design) is already defined per siteaccess I guess