Forums / Setup & design / node_id of the thumbnail
Aya Brea
Monday 01 December 2003 11:50:27 am
Do thumbnail image in an article have any node_id? How to know it?
Alex Jones
Tuesday 02 December 2003 1:37:18 pm
The thumbnail itself would not have a Node ID, unless perhaps it is included as a Related Object.
In general, to learn what attributes (like the Node ID) are available for an object, try adding an item like this to your template:
{$:item|attribute(show)}
You can also use it with $node instead of $:item.
Using attribute(show) you will see a table that displays every attribute assigned to that item. This will allow you to determine how to get the attribute you seek.
Hope this helps,
Alex
Alex [ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ] <i>When in doubt, clear the cache.</i>
Tuesday 02 December 2003 3:53:23 pm
Yeah thanks, I just want to setup a clickable thumbnail to full view... So I have to create another view mode for the parent object which show only the thumbnail.
It work great now, waiting for my new site this weekend :D