Thursday 01 September 2005 11:19:37 pm
I have to place this menu in a custom template, (i.e. my_product.tpl), but the variable '<i>$module_result</i>' in this namespace is unknown. There is another way? Can I use another variable?
<ul>
{def $mainMenu=treemenu( $module_result.path, $module_result.node_id, array('folder','folder_product','tire_chain'), 1, 6)}
{foreach $mainMenu as $menu}
<li class="level_{$menu.level}">
{if $menu.is_selected}
<div class="selected">
<a href={$menu.url_alias|ezurl}>{$menu.text}</a>
</div>
{else}
<a href={$menu.url_alias|ezurl}>{$menu.text}</a>
{/if}
</li>
{/foreach}
</ul>
|