My breadcrumbs don't show up. Only bootstraps own settings work.

When I use bootstrap with panels without node template on it works fine. When I switch node template on it does not work.

I use bootstrap 7x.3.0, panels 7x.3.3 and drupal 7.26

Comments

bsandor’s picture

Title: It doesn't work with Bootstrap theme » It doesn't work when both Bootstrap theme and Panels node template are used
Issue summary: View changes
bsandor’s picture

Should this issue opened in panels instead?

davo20019’s picture

It seems that the root cause can be found in this thread: https://www.drupal.org/node/1606912

Custom breadcrumbs relies in the hook_node_view to change the breadcrumb in the node page, but this hook is never called. The problem is described in the thread mentioned above.

I implemented the hook_ctools_render_alter to fix the problem without hacking any contrib module. This is my code:

function MODULE_NAME_ctools_render_alter(&$info, &$page, &$context) {
   
  if($context['task']['name'] == 'node_view'){
    $data = array_values($context['contexts']);
    module_invoke('custom_breadcrumbs', 'node_view', $data[0]->data, 'full');
  }
}

Best regards,
David Loor M.