Share » Forums » General » How to list submenus?

How to list submenus?

How to list submenus?

Monday 13 October 2003 2:40:05 pm - 2 replies

Author Message

Claus Jensen

Tuesday 14 October 2003 1:11:49 am

Hi,
This works:
{let node_obj=fetch(content,node,hash(node_id,$node.node_id))}
{section loop=fetch(content,list,hash(parent_node_id,2, class_filter_type, "include", class_filter_array, array(1),sort_by,array(array(priority))))}
{section show=and(ne($:item.node_id, 131),ne($:item.node_id, 130))}
{$:item.data_map.menu_title.data_text}
{section show=$node_obj.path_array loop=fetch(content,list,hash(parent_node_id,$:item.node_id, sort_by,array(array(priority))))}
{$:item.data_map.menu_title.data_text}
{/section}
{/section}
{/section}
{/let}

If I were you I would try doing the looping the other way around. Like first looping the frontpages children, then fetching the nodes under it and looping them. Like in my example over. Its taken from the ezwiki (http://ezwiki.blanko.info/index.php/3XHT_TmplObjTree) and refined for my needs.

regards,
claÜs

Marius Andreiana

Thursday 16 October 2003 2:42:45 am

Thank you, I've missed the wiki example! It worked!

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

36 542 Users on board!

Forums menu