Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've created a panel, which uses the same name as a content type. But when I go to www.site.com/contenttype/titleofarticle the breadcrumb at the top says "Home > Title of the main node panel"
Any ideas how to edit the breadcrumb so that its set up properly?
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThe menu system does this automatically, it's not a Panels thing at all; try the custom breadcrumb module, it may be able to help you.
Comment #2
schnizZzla CreditAttribution: schnizZzla commentedyou forgot the link ;-)
custom breadcrumbs module
Comment #3
banglogic CreditAttribution: banglogic commentedI am struggling with this issue also. Custom Breadcrumbs works on Node Type. The problem is that Panels are not a Node. So, if I have a Panel defined that I want to live, say, three levels deep in a site navigation, I don't know of a way to categorize, tag, or assign a Custom Breadcrumb. Any guidance would be appreciated.
-k²
Comment #4
micheleannj CreditAttribution: micheleannj commentedSame issue. I seem to be getting random breadcrumbs on panels (ie Home > photos > blogs). Can someone explain how to use custom breadcrumbs to get around this (or any other solution?).
thanks
Comment #5
micheleannj CreditAttribution: micheleannj commentedTotal hack solution:
change the line in your page.tpl.php file where the breadcrumb is printed to
if (arg(0) == 'PANELNAME'){ print "Home » " . arg(1); }else{ print $breadcrumb ;}
This works if you have urls like /PANELNAME/ARGUMENT ...
Not a very generalized or scalable solution, but it will work in a pinch for some situations....
Comment #6
chawl CreditAttribution: chawl commentedPossibly related: #516704: Breadcrumb support for delegated (panel) pages
Comment #7
merlinofchaos CreditAttribution: merlinofchaos commented#516704 requires a hook. I'll make this the issue for it.
Comment #8
merlinofchaos CreditAttribution: merlinofchaos commentedI added this in includes/context-task-handler.inc:
Not only can you respond to the hook and add the breadcrumb there (Please, only if $page is TRUE) you can alter the output!