I have been trying to display the menu item title as the trailing item in my breadcrumbs, other than the page title.
At this point, I override the template_breadcrumb()
function with a custom function. At the end of the string variable, I have put drupal_get_title()
to append the page title to the breadcrumb trail.
Please find a snippet out of the breadcrumb function below:
foreach($breadcrumb as $value) {
$crumbs .= $value;
}
$crumbs .= drupal_get_title();
Now, when available, I would prefer the linked navigation item title to be displayed as trailing breadcrumb item. If not available, I will display the page title.
How can I check if this page is attached to a menu item, and retrieve the title, in order to display it as a breadcrumb item ?