Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
Pepe Roni CreditAttribution: Pepe Roni commentedThe 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.
Comment #2
gregglesI 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.