Forums / Setup & design / Left menu, exclude a node / Comment17715
Friday 25 February 2005 4:51:04 am
This is how I filtered away node id 142.I'm not sure if this is the recommended way of doing it, but it works.
{let docs=treemenu( $module_result.path, $module_result.node_id, ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ), 0, 2 ) depth=1} <ul> {section var=menu loop=$:docs last-value} {section show=$menu.id|eq( '142' )|not } {section show=and( $menu.last.level|eq( $menu.level ), $menu.number|gt( 1 ) )} </li> {section-else} {section show=and( $menu.last.level|gt( $menu.level ), $menu.number|gt( 1 ) )} </li> {"</ul> </li>"|repeat(sub( $menu.last.level, $menu.level ))} {/section} {/section} {section show=and( $menu.last.level|lt( $menu.level ), $menu.number|gt( 1 ) )} <ul> <li class="menu-level-{$menu.level}"> {section-else} <li class="menu-level-{$menu.level}"> {/section} <a {$menu.is_selected|choose( '', 'class="selected"' )} href={$menu.url_alias|ezurl}>{$menu.text|shorten( 25 )}</a> {set depth=$menu.level} {/section} </li> {section show=sub( $depth, 0 )|gt( 0 ) loop=sub( $depth, 0 )} </ul> </li> {/section} {/section} </ul> {/let}