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.
I am using a multilevel taxonomy vocabulary for the alt and title. The node can set both the top and second level.
The problem is that I want to design the alt/title with the top-level and second level tokens separately. [field_vocab-term] is great as it gives me just the top term, however [field_vocab-terms] gives all terms, including the top term.
It would be great if there was a token for each level such as [field_vocab-x-terms] where x is the level and that only contains the terms for that level.
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedHi edde42,
ImageField Tokens does not actually define any of the tokens, it simply hooks into the Token module.
While technically I could implement these particular tokens, it would make little to no sense, instead I will move this issue over to the Token module issue queue for you.
Cheers,
Deciphered.
Comment #2
tsvenson CreditAttribution: tsvenson commentedThanks Deciphered for doing that. I believe that if Tokens makes this possible it will add a lot of flexibility to how taxonomy levels can be utilised in Drupal in quite a few situations.
Comment #3
Dave ReidIs this a CCK field token or vocabulary token?
Comment #4
tsvenson CreditAttribution: tsvenson commentedWoa, that was some time ago. That project got scrapped not long after and I have absolutely no memory of it any more...
Comment #5
Dave ReidOk, fair enough then. :/
Comment #6
Branndon CreditAttribution: Branndon commentedI would like this option too, what I'm trying to do is get the parent and children of a specific taxonomy listed seperatly for custom bread crumbs and possibly pathauto, the ideal output would be this
[taxonomy-parent]/[taxonomy-child] which would make my bread crumbs look like this
Home > Construction > Architecture
now all I can get is this:
Home » architecture/construction
Which isn't even in the right order.