Closed (outdated)
Project:
Token
Version:
6.x-1.11
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 May 2009 at 16:56 UTC
Updated:
24 Apr 2024 at 18:55 UTC
Jump to comment: Most recent
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
decipheredHi 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 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 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 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.
Comment #7
bluegeek9 commented