get an image attribute full path

Author Message

Ndjientcheu Patrick

Saturday 27 January 2007 8:50:34 am

Hi,
i have a class whose an attribute is an image. In the template associated with the class, i would like to get the full path of the image, something like this:

{$node.object.data_map.image.full_path}

Please , may you tell me which attribute i should use to get the full path?

Thanks.

Claudia Kosny

Sunday 28 January 2007 11:51:47 am

Hi there

As far as I know you can access the full path with

{$node.object.data_map.image.content[original].full_path|ezroot}

'Original' is the name of the image variation whose full path you need, other possible values are e.g. 'small', 'large' or whatever other aliases you have in your image.ini.

If you need other information about an image check the documentation for the content of an image attribute (which is an imagealiashandler for the respective image):
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/objects/ezimagealiashandler

Claudia

Ndjientcheu Patrick

Sunday 28 January 2007 12:55:42 pm

Thanks,I use medium (among 'small', 'large','reference' and 'rss') as image variation and it works.

Thanks again.

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