Wednesday 13 October 2004 5:21:50 am
I have a problem displaying the related objects of an article in a pagelayout template. The following code works in a ‘normal template’ but not in a pagelayout template.
{let related_objects=$module_result.node_id.object.related_contentobject_array} {section show=$related_objects}
<div class="relatedarticles">
<h2>{"R"|i18n("design/magasinet/layout")}</h2>
<ul>
{section name=ContentObject loop=$related_objects show=$related_objects}
<li><a href={$ContentObject:item.main_node.url_alias|ezurl}>{$ContentObject:item.name}</a></li>
{/section}
</ul>
</div>
{/section} {/let}
|