Alexandre Cunha
|
Friday 21 July 2006 6:16:13 am
Hi, Im trying set the double_top.tpl to a different NodeId
{let root_node=fetch( content, node, hash( node_id, 2 ) )}
<div id="topmenu">
<div id="topmenu-design">
<h3 class="hide">{"Top menu"|i18n("design/base")}</h3>
{let 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 ) )}
<ul>
Have changed the "node_id, 2" to "node_id, 218" and "parent_node_id, 2" to "parent_node_id, 218". This change results only for the first level of the menu. The second level (sub menu) show itens under NodeId 2. I use ezp 3.8.1 How solve this ?
http://AlexandreCunha.com
|
Matthew Carroll
|
Friday 21 July 2006 9:33:01 am
You'll also need to change the code that fetches the second level of menu items:
{let submenu_items=fetch( content, list, hash( parent_node_id, $module_result.path[1].node_id,
class_filter_type, include,
class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ),
sort_by, $root_node.sort_array,
limit, 10 ) ) }
to something like this:
{let submenu_items=fetch( content, list, hash( parent_node_id, XXX,
class_filter_type, include,
class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ),
sort_by, $root_node.sort_array,
limit, 10 ) ) }
...where XXX is the id of the node you want to base the second level of the menu on.
I hope that helps Matthew
http://carroll.org.uk
|
Alexandre Cunha
|
Friday 21 July 2006 5:44:17 pm
Hi Matthew,
Thanks for your help. Yes, this solves the problem.
For other users with the same problem, have found another interestng post: http://ez.no/community/forum/setup_design/has_rootnode_any_effect#msg101010
http://AlexandreCunha.com
|