Hi All,
I've got a rule setup that sends an email that looks like this:
************************************
Content has been assigned to you by [user:user]
Title: [node:title]
Link: [node:site-url]/index.php?q=node/[node:nid]/revisions/[node:vid]/view
State: [node:term]
************************************
The problem is that I have two vocabularies, "State" and "Year", and [node:term] shows you the "top term" which, apparently, is "Year" term that is on the node, and I want to show the user the "State" term that is assigned.
How do I specify the term(s) for a specific vocabulary, rather than having it automatically just pick the "top" term? I've been searching on this and haven't been able to come up with a solution...
Thanks for any input!
-Josh
p.s. if there's a better way to construct the link, I'm open to suggestions on that as well.
Comments
_
I think you can change it by changing the weight (order) of the vocabulary on the taxonomy config page.
So in other words, it will always show me the top term?
Hi WorldFallz,
It sounds like what you're suggesting is to reorder the vocabularies so that the term I want will be the "top term," is that right?
In that case, if I ever wanted to include *both* the year and the state, there wouldn't be a way to do that? In other words, there is no way to specify the vocabulary to pull the node:term out of, it will just always pick the top term?
-Josh
_
Yep-- it even says 'top term' next to the token definition. To add more terms you could either use php to get at the terms you want or instead of using taxonomy, you can use cck fields which all have their own tokens.
Bummer
Guess you can't have everything, eh? :-) Maybe that feature will get added in the future. If I can find some free time maybe I will even work on a patch for this.
Hi,Would it be possible for
Hi,
Would it be possible for you to help me with this php code, as it makes more sense for me to use the taxonomy than cck fields...Php code that we normally use to pull up terms in contemplate dont seem to work here. Am not a coding expert! :(
Thanks
Actually found the solution: http://drupal.org/project/token_array Thanks!
Jaya
Jaya
_
I hadn't seen that module-- nice!