| Tuesday 07 September 2004 10:05:08 am 
                                                                
                                                                 The following code 
{let topMenu=treemenu($module_result.path,2,array('folder'),1,2)}
    <ul>
      {section var=TopMenuItem loop=$topMenu}
         <li><a {$TopMenuItem.item.is_selected|choose('','class="selected"')} href={$TopMenuItem.item.url_alias|ezurl} title="{$TopMenuItem.item.text}">{$TopMenuItem.item.text}</a></li>
      {/section}
   </ul>
{/let}
delivers a proper top level menu but does not set the is_selected attribute. Therefore the 'class="selected"' option in the a-tag is never chosen. The following code for sub menus works correctly also with reference to the is_selected attribute: 
{let LeftMenu=treemenu($module_result.path,$module_result.node_id,array('article'),1,6)}
    {section var=LeftMenuItem loop=$LeftMenu}
        <li><a {$LeftMenuItem.item.is_selected|choose('','class="selected"')} href={$LeftMenuItem.item.url_alias|ezurl} title="{$LeftMenuItem.item.text}">{$LeftMenuItem.item.text}</a></li>
    {/section}
{/let}	
Did I make anythink wrong or is this a bug in Exponential? 
Thanks in advance,Christof
 |