Download & Extend

Should Taxonomy Token provide "taxonomy" type tokens besides "node" ones?

Project:Taxonomy Token
Version:6.x-1.0-rc1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

Taxonomy Token only provides "node" type tokens, i.e., tokens that expose taxonomy details related to a specific node.

Should it provide "taxonomy" type tokens also? Can someone interested explain exactly what each token would expose in a "taxonomy" context?

Comments

#1

It would be useful for me.

Uses I can think of:
1) Creating more useful page titles with the Taxonomy Token and Page Title modules. As a simple example, instead of having a page title like "Thailand, Hotels" I could setup a page title pattern that would read "Hotels in Thailand".
2) Creating more intuitive and SEO-friendly URLs. Following the example above, if "hotels" and "Thailand" were two terms in "category" and "location" vocabularies, a URL like .com/thailand/hotels could automatically be generated with Pathauto.

These are the reasons I tried out Taxonomy Token.

#2

I wonder how exactly these tokens would look like.

Would there be term1, term2, term3 tokens and so on?

#3

Yes, from a usability perspective, I suppose the token used could be like [vocab:1:term] and that would display a term from vocabulary 1.

#4

I don't believe this would work. Which term in the term chain would be presented with [vocab:1:term]? The first? The last? The second?

I believe it would be necessary to create something like [vocab:1:term:1], [vocab:1:term:2] to present the top most term of vocabulary 1 and the second top most term of vocabulary 1 respectively.

The problem with such an approach is that for different taxonomy depths there would be different tokens available.

Ideas?

#5

Maybe just show the top term in the vocabulary. It's simpler but still pretty great.

#6

Well, maybe there could be [vocab:1:term] and [vocab:1:bottomterm] in taxonomy context, like in node context. The first would return the top term and the second would return the bottom term. What you think?

Is there already a token that provides each vocabulary name in taxonomy context?

#7

Works for me.

I'm not aware of tokens that provide vocabulary names.

nobody click here