Friday 29 June 2012 3:46:48 am - 2 replies
Hello,
I'm trying to get the directory path of one of my images with the ezimagealiashandler but unfortunately I can't get it to work. I've tried lots of variotions of the attribute dirpath but no one returns the directory of the image.
Can anyone help me please?
thank you.
Friday 29 June 2012 9:10:45 am
Hi Ricardo
Dir path for attribute image is like:
$node.data_map.attribute_image.content.image_alias.<span>dirpath</span>
More info you will find here: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Objects/ezimagealiashandler
For images stored in design folder more details you'll find in eZURLOperator::eZImage static class, which is used to get the image path (for ezimage operator):
... $bases = eZTemplateDesignResource::allDesignBases(); $triedFiles = array(); $fileInfo = eZTemplateDesignResource::fileMatch( $bases, 'images', $operatorValue, $triedFiles ); ...
Cheers
You must be logged in to post messages in this topic!