Closed (fixed)
Project:
Menu Firstchild
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2009 at 14:38 UTC
Updated:
3 Feb 2012 at 12:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
stefan81 commentedCould this help?
http://drupal.org/project/menu_node
Comment #2
anrikun commentedAs stated on the project page, breadcrumb problems are not an issue of Menu Firstchild but an issue of Drupal itself and the buggy includes/menu.inc file.
http://drupal.org/project/menu_node might help but I cannot say as I have not tested it yet.
You may try to patch menu.inc (see http://drupal.org/node/609542): it worked for me.
Comment #3
stefan81 commentedAnrikun, thanks for your help.
I applied the patches 1 and 2, but unfortunately they did not help me.
Comment #4
anrikun commentedPlease can you provide more information about your menu? What you expect etc.
Comment #5
stefan81 commentedThanks for asking.
If I use the breadcrumb is missing for the first page in the menu.
The breadcrumbs show for all other menu items.
And, If I link directly to the first page using the node id instead of .
Would be cool to get the breadcrumbs also visible for the first entry.
Comment #6
anrikun commentedSorry but the attachment alone is not enough for me to understand your problem.
Please add an explanation about this attachment.
Also list your menu's items with hierarchy and write which items have real paths and which items have paths.
Comment #7
stefan81 commentedHi,
Just noticed that
<firstchild>has been stripped off my posts...In my example, I am using a menu with four items.
All items use
<front>or<firstchild>as link.Above you can see that the fist menu item under a
<firstchild>won't show a bread crumb path.Comment #8
anrikun commentedIn includes/menu.inc, function menu_set_active_trail, try to comment this part this way (around line 1550) :
It should work then.
Comment #9
stefan81 commentedThank you, this worked out!
Comment #10
verta commentedIf this is a good solution, could it be proposed for the main code base?
Just an idea.
Comment #11
anrikun commentedHow to propose it?
Comment #12
verta commentedI think the main code issue queue is here:
http://drupal.org/project/issues/drupal
Comment #13
anrikun commentedIf you have some time, could you please propose it?
I'm a bit busy at the moment! :-)
Comment #14
verta commentedAfter a little filtering, I found this issue
Active trail isn't set on all menu items pointing to the current path
http://drupal.org/node/609542
Which sounds like the same issue. Maybe?
I'm not set up for testing patches, or I'd test that fix - sorry!
Comment #15
anrikun commentedI have just added this to Core's issue queue:
#732370: Go as deep as possible when building the active trail.
Comment #16
anrikun commentedThis information has been added to project page.
So closing it.
Comment #17
nvakenSince I do not want to affect our Drupal core for our multi-site setup, I've made a template.php function which will rebuild the breadcrumb when it notices the last menu item as a link and then add the first child's title. Note that this little snippet will not react to settings in "menu breadcrumb" modules or any in it's kind.
Hope this will help some people out.
Comment #18
duaelfrI had to fix an issue for one of my clients in which breadcrumb were displaying links to "%3Cfirstchild%3E" under Drupal 6.22 with i18n enabled.
Here is the working code if this can help somebody. Sorry for the mess but it seems to have been built on Zen basis. The useful part starts with "// FIX".