Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Group context in the breadcrumb is lost on some special node tabs such as Votes on Polls, and Revisions on wikis.
Comments
Comment #1
lightsurge CreditAttribution: lightsurge commentedA similar thing happens with node hierarchy #1297918: Fixing breadcrumbs on node/%nid/... pages who solved it with a _preprocess_page function
Comment #2
mstef CreditAttribution: mstef commentedAs of now, we force-override breadcrumbs in all conditions that we see necessary, since there currently isn't a better way to handle breadcrumbs in drupal (to the best of my knowledge). There's also the issue of deciding exactly what should show up where, since when you're dealing with groups, and content in groups, there is a lot that could potentially be in the breadcrumbs.
See commons_core_set_breadcrumb().
It would be helpful if we started a list of pages that need better breadcrumbs, and what we think they should be.
Comment #3
mstef CreditAttribution: mstef commentedRewriting title, since actual group "context" refers to something else, more critical.
Comment #4
lightsurge CreditAttribution: lightsurge commentedIn that case possibly #1287760: when in a group, and travelling to a node from a content type tab, content type should be in breadcrumb as well as node could be composited with this issue and that one closed...
I had a look at commons_core_set_breadcrumb() but still couldn't see an easy way to add a link to a content type's group content view... I ended up with a hackish solution that simply makes blind assumptions and checks that in the end it has a valid url.
I'd put this in template.php as I wasn't aware of commons_core_set_breadcrumb()
Anyway, that's one item I would expect to see in node breadcrumb trails. Other than that we have:
Comment #5
lsolesen CreditAttribution: lsolesen commented