Wednesday 09 April 2008 2:48:48 am
Hi,
I'm trying to get related object information from an <i>ezcontentobjecttreenode</i>. For example, related <i>articles</i>. I get information as following :
{if $node.data_map.related_articles.has_content}
<ul>
{foreach $node.data_map.related_articles.content.relation_list as $related_article}
<li><a href={$related_article.url_alias|ezurl}>{$related_ar.data_map.title.content}</a></li>
{/foreach}
{/if}
I can get the object title, but i can't get the url_alias cause $related_article is an object, not an <i>ezcontentobjecttreenode</i>. However, a basic
{attribute_view_gui attribute=$node.data_map.related_articles}
return the list of related articles links with available url.(separate by <br/>) How can i do to display my list of related article with my own html code ? Thanks. Fab.
|