Pesti Pal
|
Friday 13 July 2007 5:55:44 am
Modified flat_top.tpl:
menuitems=fetch( content, list, hash( parent_node_id, 2,
class_filter_type, include,
class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ), sort_by, $root_node.sort_array ) )}
to
menuitems=fetch( content, list, hash( parent_node_id,
<b>59</b> ,
class_filter_type, include,
class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ), sort_by, $root_node.sort_array ) )}
Isn't there an easyer way? I haven't seen anywhere in the code that ez checks any of parent_node settings, it just puts 2 in it... is this a bug?
|
Betsy Gamrat
|
Sunday 15 July 2007 8:54:54 am
Hi, 2 is usually the top of the content tree. If changing it to 59 works for you, then you're all set. If you would like the setting derived out of the .ini file, you could use something similar to:
menuitems=fetch( content, list, hash( parent_node_id,
ezini( 'SiteSettings','RootNodeID','site.ini'),
class_filter_type, include,
class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ),
sort_by, $root_node.sort_array ) )}
I didn't verify the syntax and labels on this, but the basic idea is to use ezini to get the RootNodeID out of site.ini.append.php Good luck.
|