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

Deciphered’s picture

Project: ImageField Tokens » Token
Version: 6.x-1.0 » 6.x-1.11

Hi 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.

tsvenson’s picture

Thanks 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.

Dave Reid’s picture

Status: Active » Postponed (maintainer needs more info)

Is this a CCK field token or vocabulary token?

tsvenson’s picture

Woa, that was some time ago. That project got scrapped not long after and I have absolutely no memory of it any more...

Dave Reid’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Ok, fair enough then. :/

Branndon’s picture

Status: Closed (won't fix) » Needs review

I 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.