eZ Community » Forums » Setup & design » Images - how to access?

Images - how to access?

Images - how to access?

Saturday 21 January 2006 7:55:33 pm - 3 replies

I have the following problem

I'm trying to access the image, that is a part of the article:

{def $my_node=fetch( 'content', 'node', hash( 'node_id', 82 ) )}
<img src={$my_node.data_map.image.content[reference].full_path}>

82 is number of node for my article

but it doesn't work - I am unable to read "full_path" because its always NULL

with other fields (image.content.name; image.content.id and so) I aquire the proper values...

what is wrong with that?

Sunday 22 January 2006 12:49:05 pm

Try this one:

<img src={$my_node.object.data_map.image.content[reference].full_path}>

(add '.object' between mynode and data)

Monday 23 January 2006 1:44:04 pm

The debug string


is of great help to get hold of stuff sitting on a node.

Try for instance:


and nest from there.

Tuesday 24 January 2006 1:24:07 pm

now it works but I wonder why it doesn't work with:
<img src={$my_node.data_map.image.content[reference].full_path}>

anyway I have other problem (new topic)


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from