Hi,
I want to print the primary main menu links and its sub menu in the left side block.
i am using nice menu for displaying menu at header. suppose i click on the Header menuA it will display its all child and sub menu child1, Child2 etc on the left side block. If I Click on the Menu B it will display the Submenu1, Submenu2, And also its Sub menu, Submenu2 menu1, Submenu menu2. etc i would like to print like this Any quick help is Highly appreciated Please Help...if any function is there please notify me .
I have already checked with this function but it only display the Sub menu, Not the Children of sub menu
And Also i need to apply the Focus class to the selected menu parent and Children.
==========
$menus = menu_tree_page_data('menu-primary-menu', NULL, TRUE);
foreach($menus as $menu) {
if( $menu['link']['in_active_trail'] && !empty($menu['below']) ){
return drupal_render( menu_tree_output($menu['below']) );
}
}
==========
Menu A
- Child 1
- Child 2
Menu B
Submneu1
Submenu2
Submeny2 menu1
Submenu2 Menu2
Menu C
Menu D
Submenu3
Thanks & Regards, in Advanced
Comments
Not sure what you are trying
Not sure what you are trying but there is a nice menu module and using it you just need to enable the a block.
I need my Dyanamically primary links menu Full html structure
Hi Nevets,
Thanks for the quick reply.
I am already using nice menu and i am showing it on the header region. with drop-down option.
I need to display the sub menu of the main menu in the left side bar.
my Header region menu are like this.
Menu1
--menu1 of 1
--menu 1 of 2
Menu2
--menu2 of 1
--menu2 of 2
-- menu2 of menu1
--menu2 of menu 2
Menu 3
menu 4
when i click on the Menu1 at the Header section at the same time on the Left side bar it will display all the sub menu of Menu1 i.e. (menu1 of 1, menu1 of 2 etc)
when i click on Menu2 at Header section at the same time it will show me the Sub menu of Menu2 i.e.(menu2 of 1, menu2 of 2, and menu2 of menu1, menu2 of menu2 etc) .
and also i want to apply the focus class on the selected menu option and its sub menu (means the active menu is highlighted in left side bar).
Basically i need my Dynamically primary links menu Full html structure dynamically so i can apply it on some classes)
Thanks