Friday 08 December 2006 8:02:35 am
The menu.ini setting being used in this template is just set to limit which classes will be included in the menu. The line:
ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' )
means look in menu.ini (and any of the menu.ini overrides or siteaccess files), find the section starting with MenuContentSettings, and look at the value of LeftIdentifierList. So in the menu.ini.append.php for that siteaccess you will find a section called MenuContentSettings similar to:
[MenuContentSettings]
TopIdentifierList[]
TopIdentifierList[]=folder
LeftIdentifierList[]=feedback_form
LeftIdentifierList[]
LeftIdentifierList[]=folder
LeftIdentifierList[]=news_folder
Which would mean that only nodes which were of the class folder or news_folder would appear in the left menu. I think the is_set( $module_result.node_id )|choose( 2, $module_result.node_id )
provides some kind of fallback mechanism so that it uses the root node 2 if the module_result is empty. Hopefully somebody else can provide a better explanation for how it works. Its ugly but you could always hard code the node id you want the tree to start at:
{let docs=treemenu( $module_result.path,
xxxxx,
ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ),
0, 5 )
depth=1
last_level=0}
Where xxxxx is the node id that is the top of the tree.
|