Friday 25 August 2006 2:53:01 am
Hello.
There are some problems with the treemenu operator. I put a treemenu into my content-file (design/<design>/override/templates/full/<filename>.tpl) and used this code:
{def $mainMenu=treemenu( $node.path,
$node.node_id,
array('folder'),1,5)}
{foreach $mainMenu as $menu}
{if $menu.is_selected}
<div style="height: 18px;">
<img src="/images/folder.jpg" border="0" align="absmiddle" /> <a class="select" href={$menu.url_alias|ezurl} alt="{$menu.text|wash}" title="{$menu.text|wash}">{$menu.text|wash}</a>
</div>
{else}
<div style="height: 18px;">
<img src="/images/folder.jpg" border="0" align="absmiddle" /> <a href={$menu.url_alias|ezurl} alt="{$menu.text|wash}" title="{$menu.text|wash}">{$menu.text|wash}</a>
</div>
{/if}
{/foreach}
The output is always the same, treemenu shows only the root-level. nothing else will be displayed when I click deeper into the content structure. If I use the code in the pagelayout.tpl, the other levels will be shown... I can't understand why. Could anyone give me some help? Thanks a lot... Philip
Linux is like a wigwam; no windows, now gates, and apache inside!
|