Drupal 7.9
Menu Block 7.x-2.2
DHTML Menu 7.x-1.0-beta1
--

HEADER
My entire site navigation is in "Main Menu", has THREE main menu items at level one, and is four levels deep in some places. I have created a custom menu block for the main navigation in the header. Three buttons.

SIDEBAR
I have menu blocks that show contextual menus using dthml menu. Works beautifully. Thanks!

FOOTER
I am trying to duplicate the first two levels of the main menu navigation in my footer using Menu Block. (Sort of a mini sitemap) So I first created THREE separate menu blocks for each main menu item. Unfortunately level one is NOT activated as a link. I need it active.

So then I decided to make one big menu in the footer and sort the positioning with CSS. I added a menu block for level one so it lists all the level one links, and I want level 2 children listed below each link.

Unfortunately because dhtml menu is running, it does not list each child (level) of the main menu links until the parent is clicked.

Basically I would like to disable dhtml menu for just the menu blocks in my footer. But dhtml menu only allows me to deactivate ALL of "Main Menu" not just menu blocks.
OR
I would like to create menu blocks that have the beginning level activated as well as it's children.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vitalie’s picture

+1

anrikun’s picture

+1

anrikun’s picture

Title: disable DHTML menu for menu blocks, not just menus? » Add support for the Menu block module
Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Category: support » feature
anruether’s picture

Add support for the Menu block module

Would be grat to see! For me DHTML menu does not function at all if the menu levels are separated into different blocks.

ckng’s picture

+1
The real issue here I think there is no enable/disable per block, which I believe used to have in older version.
Another option is to provide a way to intercept/override the global filter setting.

anthonycapo’s picture

+1

marcoka’s picture

you can test this: http://drupal.org/project/dynatree
i wrote it as nothing is happening in dhtml menu

jwjoshuawalker’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta1

Any updates here? Anyone made progress?

Mainly on the objective: Additional block or DHTML setting to make it aware of Menu Block menu clones.

I have the same issue as OP, duplicating Main Menu in the footer. Need the footer version to *not* use DHTML.

Deadline on current project I need this for is 3 weeks from now. If no one else has a solution, and I don't go a different route before then, I will post the solution I create.

paulmckibben’s picture

Status: Active » Needs review
FileSize
2.29 KB

I have a patch that I have tested on a site with menu block installed, and on another site without menu block installed. With menu block installed, the UI allows you to select specific menu blocks to blacklist/whitelist. Without menu block installed, the UI is unchanged.

Please review and (hopefully) commit!

Thank you.

freeform.steph’s picture

Tried the patch and it seems to work great, thank you! (Applied manually so I can't confirm if this patch passes).

Katy Jockelson’s picture

Issue summary: View changes

Patch in #9 works great if you want to disable the module for 1 or more of your menu blocks, where it's enabled for the root menu.

What I need is to disable it for the main site navigation, but enable it for the sidebar menu block where the root menu is the main menu tree.

Any help gratefully received.

rooby’s picture

I also want to do what is described in #11.

(the patch still applies with slight offset.)

rooby’s picture

re #11: can't you just make your main menu also use the menu block module, then have full control?

sheise’s picture

I was having the same problem as #11 and #12 so I re-rolled a patch that's almost the same as #9 with a slight variation. There may be a better way to do this, but it should work for now.

knalstaaf’s picture

When I use two Menu Blocks (one with DTML Menu and one without) on one page, the collapse/expand fuctionality disappears (using #14).

I'm using this in my template.php out of necessity, otherwise the expand-feature doesn't work properly:

/**
 * Overrides theme_menu_link().
 */
function cierxv_menu_link__menu_block($variables) {
    return theme_menu_link($variables);
}

Not sure if it has anything to do with it (I believe not).

knalstaaf’s picture

Status: Needs review » Active

The latest (critical) update of Ctools breaks this functionality in my project. Can someone confirm this?

knalstaaf’s picture

Status: Active » Needs review

Jumped on the alert button too soon. Clearing the cache turns things back to normal.

dshields’s picture

Status: Needs review » Reviewed & tested by the community

Works well for us!

dark_kz’s picture

I'm getting next error when using the patch #9 or #14

Notice: Undefined index: menu_block in function dhtml_menu_settings() (line 132 file /sites/all/modules/dhtml_menu/dhtml_menu.admin.inc).
Warning: Invalid argument supplied for foreach() in function form_type_checkboxes_value() (line 2337 file /includes/form.inc).

What am I doing wrong?

  • ilchovuchkov committed 189bd23 on 7.x-1.x
    Issue #1329876 by ilchovuchkov, paulmckibben, sheise: Add support for...
vuil’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Committed to the latest 7.x-1.x-dev branch. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

vuil’s picture