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.
Hello,
I have a question:
I have a node has taxonomy entries like that
Electronics
Electronics --> TV
Electronics --> TV --> LCD TV
I would like to have a breadcumb as
Home --> Electronics --> TV --> LCD TV
but I have
Home --> Electronics
How can I get a breadcumb for this node as Home --> Electronics --> TV --> LCD TV
Thanks
Comment | File | Size | Author |
---|---|---|---|
#3 | multiple-taxonomy terms-breadcrumb-1850040-3.patch | 627 bytes | philipz |
Comments
Comment #1
gurvan CreditAttribution: gurvan commentedI have exactly the same problem
Comment #2
zkey CreditAttribution: zkey commentedSimilar problem... Follow
Comment #3
philipz CreditAttribution: philipz commentedI have the same problem. I'm using Hierarchical Select as my widget and I'm saving all parents with lineage. This results in only top parent term showing up in my breadcrumb path.
The problem is
_taxonomy_breadcrumb_node_get_lightest_term
function which returns the first found term. Judging by its name this seems to work as designed but why is this designed like that? I might be wrong but getting the last term is what should be done here.This patch does not change function name but I can refactor where needed if this change makes sense.
Comment #4
zkey CreditAttribution: zkey commentedThank you for help!
It's a great module, maybe there is something like ?