Saturday 14 August 2004 1:50:26 am
The following code works for 3.3 but not for 3.4.1 can someone help? <h3>{""|i18n("design/news/layout")}</h3> <h3>{""|i18n("design/news/layout")}</h3>
{let category_list=fetch( content, 'list', hash(parent_node_id,$node.parent_node_id,
'class_filter_type', 'include',
'class_filter_array', array( 31 )))}
<div id="categorylist">
<ul>
{section var=category loop=$category_list sequence=array(bglight,bgdark)} <li class="{$category.sequence}">
<a href={$category.item.url_alias|ezurl}>{$category.item.name|wash}</a>
</li>
{/section}
</ul> </div>{/let}
<h3>{""|i18n("design/news/layout")}</h3>
{let related_objects=$node.object.related_contentobject_array}
{section show=$related_objects}
<div class="relatedarticles">
<h2>{"Relaterte artikler"|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}
|