Forums / Setup & design / Images - how to access?
b j
Saturday 21 January 2006 10:55:33 am
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?
Maurizio Betti
Sunday 22 January 2006 3:49:05 am
Try this one:
<img src={$my_node.object.data_map.image.content[reference].full_path}>
(add '.object' between mynode and data)
Maurizio Betti http://www.arsweb.it http://www.hospes.it
Christopher Grondahl
Monday 23 January 2006 4:44:04 am
The debug string
|attribute(show)
is of great help to get hold of stuff sitting on a node.
Try for instance:
{$my_node|attribute(show)}
and nest from there.
Chris ez site: http://www.acem.no Every day is Groundhog Day
Tuesday 24 January 2006 4:24:07 am
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)