Is there anyway to get this module to integrate with the Menu Block Module like the DHTML Menu Module does? DHTML Menu works, but I hate that you have to double click to follow a link.

The Menu Block Module could provide the serverside and JQuery menu module could provide the client side to expand/collapse the menu items.

Here is a related issue I submitted in the Menu Block issue que.

CommentFileSizeAuthor
#7 patch.diff22.48 KBhypertext200

Comments

okmi’s picture

any update on this? it would be very useful for us!

mzwyssig’s picture

Version: 6.x-1.9 » 6.x-3.3

Subscribing

PixelClever’s picture

For those interested in this, please support the patch posted on http://drupal.org/node/913632
If that patch gets committed then I can add menu block support.

gmclelland’s picture

Version: 6.x-3.3 » 7.x-4.0-alpha3

Would this help? #907292: Add API to obtain raw menu data (not the render element)

The code just committed to the dev version of Menu Block.

akumajo’s picture

I hope that menu block will be integrated soon, my new project needs it :).

Any news ?

knalstaaf’s picture

Issue summary: View changes

For our projects it's actually a breaking point when considering the use of this module.

hypertext200’s picture

StatusFileSize
new22.48 KB

This project looks like a dead project but anyway did some work to implement this with the Menu Blocks module and patch is attached.

hypertext200’s picture

Status: Active » Needs review
luciano.baraglia’s picture

I've just added a custom module to alter the contextual links of the block, so it show links to "Configure menu" and "List links".

function MYMODULE_block_view_alter(&$data, $block) {
  if ($block->module == 'jquerymenu') {
    $system_menus = menu_get_menus();
    $key = array_search($data['subject'], $system_menus);
    if (isset($system_menus[$key])) {
      $content = $data['content'];
      // Content was a string, transform it to an array with #markup so I can add the contextual links
      unset($data['content']);
      $data['content'] = array(
        '#markup' => $content,
        '#contextual_links' => array('jquerymenu' => array('admin/structure/menu/manage', array($key))),
      );
    }
  }
}