Sunday 25 June 2006 2:31:53 am
I took a closer look on this, and I realised, that I have to do the link check on my own. But unfortunately, treemenu() doesn't give me any info about the class type... I wanted to add the same as for the top menu, so:
{section show=eq( $menu.object.content_class.identifier, "link" )}
<a {$menu.is_selected|choose( '', 'class="selected"' )} href={$menu.data_map.location.content|ezurl}>{$menu.object.name|wash}|shorten( 25 )}</a>
{section-else}
<a {$menu.is_selected|choose( '', 'class="selected"' )} href={$menu.url_alias|ezurl}>{$menu.text|shorten( 25 )}</a>
{/section}
But when using treemenu, I don't have access to the $menu.object.content_class.identifier. Any ideas? Do I really have to replace treemenu()? Phil
|