Share » Forums » General » Need help with filtering out sections...

Need help with filtering out sections when useing treemenu

Need help with filtering out sections when useing treemenu

Friday 25 February 2005 4:31:31 am - 1 reply

Author Message

Ɓukasz Serwatka

Monday 28 February 2005 10:47:08 pm

{let subMenu=treemenu( $module_result.path, 
                        $module_result.node_id,
			array('folder','article'), 0, 2 )
	sectionIds=array( 5, 4, 123 ) } {*section ids to display*}

{section var=menu loop=$subMenu}
	{let nodeData=fetch(content, node, hash( node_id, $menu.id ) )}
	{section show=$sectionIds|contains( $nodeData.object.section_id )}
		<div class="colMenu{$menu.item.level}">
          		<a href={$menu.item.url_alias|ezurl}>{$menu.item.text}</a>
     		</div>	
	{/section}
	{/let}
{/section}
{/let}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu