Closed (won't fix)
Project:
Organic Groups Menu (OG Menu)
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 May 2011 at 13:22 UTC
Updated:
11 Jan 2013 at 00:40 UTC
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
Comment #1
pelicani commentedeasy 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) .'';
}
}
Comment #2
rv0 commentedClosing old issues. Re-open if needed