We would like to display the Group Node in the breadcrumb for each page in the OG Menu.
Is it possible with the current code, and we just missed an option?
If not, how would one go about coding this?

We're going to take a look, but put this out incase others already have a solid solution.
Thanks.

peace,
michael

Comments

pelicani’s picture

easy solution, alter the theme breadcrumb function ...

function theme_breadcrumb($breadcrumb) {
if ($og_node = og_get_group_context()) {
if ($og_node->nid == arg(1)) {
$breadcrumb = array();
} else {
$breadcrumb[0] = l($og_node->title,$og_node->path);
}
}
if (!empty($breadcrumb)) {
// uncomment the next line to enable current page in the breadcrumb trail
// $breadcrumb[] = drupal_get_title();
return ''. implode(' » ', $breadcrumb) .'';
}
}

rv0’s picture

Status: Active » Closed (won't fix)

Closing old issues. Re-open if needed