When using reaction breadcrumb to point the trail at a disabled menu position the reaction is ignored.
Appears that the query specifically excludes hidden items for some reason.

In my use-case we add some items to our menus to just to control breadcrumbs (via Menu Breadcrumb) in concert with Context... even though we don't want to actually show that item in the rendered menu blocks.

Is there a reason not to remove this limit within the query?

Do we need to add an option to allow hidden menu items?

Happy to create a patch!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

doublejosh’s picture

Did some initial work on this, but it's pretty subtle!

For starters, context_reaction_breadcrumb is an extension of context_reaction_menu class. The option form does not break the menu item option out into a stand-alone item... meaning adding an "allow disabled" option breaks existing configurations. Certainly don't want to go moving settings around from where they exist in the form to where they are used as options.

Only reasonable plan is to make this a global setting to allow disabled menu items to control breadcrumbs.

doublejosh’s picture

Version: 7.x-3.1 » 7.x-3.2
Category: Bug report » Feature request
Status: Active » Needs review
FileSize
2.53 KB

Here's the patch. Default stays as is.

(Run against 3.x after the 3.2 release.)

iamEAP’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
FileSize
2.33 KB

Re-roll of #2 against latest dev.

Status: Needs review » Needs work

The last submitted patch, 3: breadcrumb_reactions_disabled_items-2177845-3.patch, failed testing.