Saturday 21 March 2009 3:44:15 am
I used this datatype in my class: eZObjectrelationbrowse - http://ez.no/developer/contribs/datatypes/ezobjectrelationbrowse_datatype But I don't know how to display the link list in template. I use attribute(show) and get only node_id list:
{foreach $node.data_map.relative_objects.content.relation_browse as $obj}
NODE_ID: {$obj.node_id}<br />
{/foreach}
I can fetch data: name and link of each node by using:
{foreach $node.data_map.relative_objects.content.relation_browse as $obj}
{def $my_node=fetch( 'content', 'node', hash( 'node_id', $obj.node_id ) )}
<a href={$my_node.url_alias|ezurl}>{$my_node.name|wash}</a>
{undef $my_node}
{/foreach}
but I don't think that this is the best way to do. In technical manual talked about ezobject and eznode. But I don't know how to use. Please help me!
|