Hi,
I'm using the breadcrumbs at the orane theme, but I have differtent categories and subcategories. And when I select a product in a subcategorie I only see the "name of the product" and "HOME" in the breadcrumb. How can I edit the code in the template so I can see also the categories and subcategories in the breadcrumbs?
function orane_breadcrumb($variables) {
// Convenience variable:
$breadcrumb = $variables['breadcrumb'];
$breadcrumb[] = drupal_get_title();
// If we have any breadcrumbs:
if (!empty($breadcrumb) && (count($breadcrumb) > 1)) {
// Convert 'em to a string:
$breadcrumbs = implode(' <span class="divider">/</span> ', $breadcrumb);
// Build a heading--here at least, we're following the D7 convention of
// accompanying menus with invisible headings to aid in text-only navigation:
$heading = t('You are here');
// Pattern for output:
$output_pattern = '<h2 class="element-invisible">%s</h2><ul class="breadcrumb">%s</ul>';
// Return the markup:
return sprintf($output_pattern, $heading, $breadcrumbs);
}
}
© Copyright 2013-2017 DrupalExp - All Rights Reserved
Hello,
Did you try this module: https://www.drupal.org/project/taxonomy_menu_trails