Posted by ambientdrup on September 9, 2011 at 8:41pm
2 followers
Jump to:
| Project: | Menu Breadcrumb |
| Version: | 6.x-1.3 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I have Rubik theme installed on our admin side. Also have Menu Breadcrumb enabled.
Our admin breadcrumb on the Rubik side of the site is now duplicating the "My account" breadcrumb:
My account >> My account >> All Content
If I disable the Menu Breadcrumb module the duplicate disappears.
How can I hide the duplicate? I tried adding $breadcrumb = array_unique( $breadcrumb); to the breadcrumb function in Rubik's template.php but that is not working.
Suggestions?
-Trevor
Comments
#1
I updated rubik's theme breadcrumb function to work around this for myself. Just replace the middle section of rubik_breadcrumb with (excluding php tags):
<?php// Add current page onto the end.
if (!drupal_is_front_page()) {
if(variable_get('menu_breadcrumb_append_node_title', 0) == 1) {
$vars['breadcrumb'][] = '<strong>' . array_pop($vars['breadcrumb']) . '</strong>';
} else {
$item = menu_get_item();
$end = end($vars['breadcrumb']);
if ($end && strip_tags($end) !== $item['title']) {
$vars['breadcrumb'][] = "<strong>". check_plain($item['title']) ."</strong>";
}
}
}
?>
I just did this quickly, so haven't double checked, but hopefully it's a start to sorting it out for you. Also, this is drupal 7.