Hello,
I am using token for automatic node titles.
i have two taxonomy vocabularies associated with one content type.
I need to use terms from only one vocabulary, and there is no option to do this (I am using [term-raw] ).
So when I saved node title become generated from other vocabulary that I don't wanted :(
thanks

Comments

Pepe Roni’s picture

The current workaround for your problem is: decrease the weight of the vocabulary to take the term from, thus becoming the first (lowest weighted) vocabulary. The reason is: [term-raw] is taken from the first selected term (in case of multiselect vocabulary, else the one selected term) in the first vocabulary of the node.

But if you want, for example, construct the node title from two different vocabularies, you are lost with this. Or, if you want to construct the autopath from one vocabulary, and the title from another vocabulary, you are lost again.

I would like to have a token [term-raw(vocabulary-id)] where vocabulary-id is the internal vocabulary number. If for example the vocabulary "gallery" has got the id 3, [term-raw(3)] should then be evaluated to the first selected term in "gallery".

Perhaps the developers of token will read this and implement a similar solution.

greggles’s picture

Status: Active » Closed (duplicate)

I think that's what you need, right? http://drupal.org/node/185446

And thanks, Druppi, for explaining the weight thing which is the only current workaround.