Closed (fixed)
Project:
Menu Attach Block
Version:
7.x-1.11
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2013 at 13:57 UTC
Updated:
21 Aug 2016 at 09:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Stolinski commentedComment #2
cameron tod commentedWould you mind posting a screenshot? It will be helpful with debugging.
Comment #3
cameron tod commentedComment #4
chrisjlee commentedHappens to me too on the admin overlay when you edit a piece of content. The gray box is the dropdown on the admin side (in the photo)
The solution to changing your click event function:
Before
$('a.menu-attach-block-drop-link', context).click(function(event) {After
$('.menu a.menu-attach-block-drop-link', context).click(function(event) {or something like that. Or only attaching the block to certain menus.
Comment #5
malcomio commentedI had the same issue on a site recently. I couldn't see a way to prevent the block being added, so ended up doing something a bit hacky and stripping it out inside theme_breadcrumb:
In my case I knew that the menu_attach_block would only ever be in element 1 of the breadcrumb array - you might need to do something more generic.
Comment #6
malcomio commentedA similar issue came up when using the Site map module.
In that case we needed to override theme_site_map_menu_link(), adding this line:
Comment #7
slydevil commentedPatch attached to address blocks showing up in the breadcrumb and in the sitemap.
Comment #8
slydevil commentedForgot the isset()...new patch attached.
Comment #10
cameron tod commentedLooks like my tests are borked but this looks pretty safe without them. Thanks!