The supplied patch provides really basic integration between menu_block and the menutrails module. The menutrails module allows admins to "virtually" place nodes in the menu structure based on their type automatically. This is really useful when building a view that renders full nodes based on arguments (rather than having to place them in the menu manually, individually).

The patch modifies the lookup when searching for the proper menu for the block. If no menus are found with a link to the current page, a second query is run using the menutrails module settings and the paths provided.

This isn't necessarily something that needs to be rolled into the menu_block module, but these two powerful menu modules can work really well together and I decided to take a quick stab at it. Thoughts?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mdeltito’s picture

Status: Active » Needs review
FileSize
1.61 KB

Updated patch to not use $result->num_rows, which is apparently unreliable (and probably not portable enough).

JohnAlbin’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)