We created a Drupal menu for the mobile site.
We are getting the menu primary links fine but when we click on the links they donot open sub links ?
How can we get this working ?

See screen shot attach of the drupal menu.

CommentFileSizeAuthor
menu1.png41.44 KBtoby53
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

akaserer’s picture

subscribing

jasonsavino’s picture

Assigned: Unassigned » jasonsavino
Status: Active » Closed (fixed)

jQuery Mobile does some interesting things with submenus. Due to some limitations in the way the menu system works I modified version 6.x-3.x to create an 'expanded' menu feel for now. I am looking into how to rework the menu system to be more jQuery Mobile friendly but until then the new version works well.

wuuster’s picture

Replace these lines

 print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('id' => 'main-menu', 'class' => array('links', 'inline', 'clearfix')), 'heading' => t(''))); 
print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary-menu', 'class' => array('links', 'inline', 'clearfix')), 'heading' => t('Menu'))); 
				
				

with this line

 $menu_name = variable_get('menu_main_links_source', 'main-menu');
            $main_menu_tree = menu_tree($menu_name); 
            print drupal_render($main_menu_tree); 

I'm here to help
Koiwu

puppyman’s picture

I had written something... but I took it away because it was a silly error on my part. :/