Share » Forums » Setup & design » setting double_top.tpl to another NodeId

setting double_top.tpl to another NodeId

setting double_top.tpl to another NodeId

Friday 21 July 2006 6:16:13 am - 2 replies

Author Message

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

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

36 542 Users on board!

Forums menu