Sometimes different menu entries are used for a single path. In these cases, Menu Breadcrumb select one of these. This patch adds a dropdown box to select the default menu that will be used for breadcrumb. Navigation menu items are excluded by this method to preserve breadcrumb on administration pages. A screenshot is attached.

Note: "Use menu the page belongs to..." should be enabled.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrfelton’s picture

Status: Needs review » Reviewed & tested by the community

+5 for this patch for me - in my opinion, this module is unusable without this patch applied. Please can somebody commit this.

Elijah Lynn’s picture

+1

balabushka’s picture

ty so much, just wanted to code that myself

dboulet’s picture

Status: Reviewed & tested by the community » Needs work

This feature would be very useful, especially for multilingual sites with separate menus for each language. Patch needs work...

xurizaemon’s picture

dboulet, can you please clarify what needs work about the above patch? Seems you mean it doesn't handle per-language menus appropriately - can you describe the issue you see in that case?

dboulet’s picture

Sorry xurizaemon, I should have described the work that was needed in more detail--now, over 2 months later, I don't even recall exactly what the issue was.

I'm pretty sure that the problem wasn't with using multi-lingual variables, I think that it was a problem with the logic that decides when to use the default menu. Using the last patch, the default menu will always be chosen--whether the current menu item belongs to that menu or not. Seems to me that the default should only be used as a fallback when a conflict is detected, when there exists more than one menu item that points to the current path. Does that make sense, or have I misunderstood the logic behind the patch?

pshahmumbai’s picture

FileSize
30.09 KB

The CVS version already does this :)

pshahmumbai’s picture

FileSize
30.09 KB
dboulet’s picture

A black list/white list option, though a nice feature, is not exactly what we are after. I was thinking about this some more, and what we really need to to give each menu a weight so that they can be given an order of preference, as suggested by jweowu in #556552: Menu weights, black/white list, and memory of menu selection.

dboulet’s picture

xurizaemon’s picture

Status: Needs work » Closed (won't fix)