Multiple same-level terms in breadcrumb
| Project: | Custom Breadcrumbs |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Here's the Scenario: I have a lets say a "vegetable" view that filters to display e.g. tomatoes and/or eggs with the help of arguments (tids). The path looks like this mysite.com/vegetablesview/2/3 whereas the path mysite.com/vegetablesview/3/2 should and does result in the same.
However in the breadcrumb, I cant figure out how to display two terms at a time as I think custom breadcrumb is setup to display only the top one-level term.
I want the breadcrumb to look like this: vegetables > eggs > tomatoes (you might say whats the point of that but its actually useful as it indicates the order of selection)
I tried [cat] but it only displays either tomatoes OR eggs, e.g. vegetables > eggs OR vegetables > tomatoes
Right now I tried using taxnomony breadcrumbs and views breadcrumbs
I looked around on other posts but couldnt find any solution, would be glad if you could point me in the right direction or tell me what I would have to change in the code.
thanks a lot keep on good work

#1
I think you want to use custom_breadcrumb_views here since you are not trying to select a breadcrumb based on a specific term and the term hierarchy option from custom_breadcrumbs_taxonomy will only show one term (and its parents).
And you are correct - the standard taxonomy/node tokens only provide the top level term. So to get the second level term, you'll need to create a new token. There are some related issues in the token queue on this, but I didn't see anything due to be committed. So you might want to make your own [term:N] tokens to provide the Nth term, using the tokenSTARTER.module that comes with token. (The most efficient place to put the code would be in token_node.inc, but I don't see a future in that).
I hope this helps. I can help with creating these new tokens if you are interested. Here are some related issues:
#452324: Mult-level taxonomy terms - token for each levels terms
#224597: If multiple terms exist, provide a token for all terms selected (all, or all in a vocab)
#185446: tokens for each vocabulary
#2
hello thanks a lot,
I will have a more closer look at it asap
#3
Marking this as fixed because the question has been answered.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.