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

merlinofchaos’s picture

Category: bug » support
Status: Active » Closed (works as designed)

The 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.

schnizZzla’s picture

you forgot the link ;-)

custom breadcrumbs module

banglogic’s picture

Title: Breadcrumbs » Custom Breadcrumbs on Panels

I 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²

micheleannj’s picture

Same 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

micheleannj’s picture

Total 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....

chawl’s picture

Version: 5.x-1.1 » 6.x-3.x-dev
merlinofchaos’s picture

Title: Custom Breadcrumbs on Panels » Custom Breadcrumbs needs a hook to work with CTools.
Project: Panels » Chaos Tool Suite (ctools)
Version: 6.x-3.x-dev » 6.x-1.x-dev
Category: support » feature
Status: Closed (works as designed) » Active

#516704 requires a hook. I'll make this the issue for it.

merlinofchaos’s picture

Status: Active » Fixed

I added this in includes/context-task-handler.inc:

        drupal_alter('ctools_render', $info, $page, $args, $contexts, $task, $subtask);

Not only can you respond to the hook and add the breadcrumb there (Please, only if $page is TRUE) you can alter the output!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.