I am trying to display tokens: [workflow-name] and [workflow-current-state-name] and they just appear as is. I even pasted in all tokens available and only the global ones translate properly. What am I missing?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | actions-cck8email-token.png | 7.69 KB | yurg |
Comments
Comment #1
slosa commentedComment #2
fagoProbably the token.rules.inc file you currently have to manually add. http://drupal.org/node/286809
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
yurg commentedSorry for re-open this, but Token support still needs to be improved. In my case, token
[field_email-formatted]was shown "as is" when i tried to send email to cck-emailfield address after node creation and no email was sent.To be sure it's Rules problem, I've made a test by configuring the same behaviour (send email to cck-emailfield address after node creation) via Actions+Trigger combination and it works fine.
And yes, I've used latest Tokens 6.x-1.x-dev version and Rules 6.x-1.0-beta2. Even manually replacement of token.rules.inc from Token+Rules integration thread was performed, as suggested at http://drupal.org/node/286809.
Comment #5
fagowhen no e-mail is sent it's possible another problem. Try activating the debug log and see what happens. Please open a separate issue for this.
Comment #6
yurg commented@fago
Thank you for reply!
My apologies for not very clear explanation of my issue. It's not about email sending, but about Tokens support in Rules. In my case, Drupal sends email, but send it to [field_email-formatted] *address), rather than, say *test@test.tld*.
Each email sending attempt shown in Drupal logs as:
The case: content type "client" created, tokenized email must be send to email in cck emailfield.
So, as topicstarter, suggest, that something wrong with Tokens support. Should I open seperate issue with the same description but title changed to "Tokens support error" instead of continue flooding here?
Sorry for annoyance and thanks for help!
Comment #7
fagoyes, open a new issue.
[field_email-formatted] - This token is wrong, probably it should be [node:field_email-formatted].
Comment #8
yurg commentedLast post in this thread: are you sure token must be [node:field_email-formatted] ?
Please, see attached screenshot from working Action. It works without *node:*. Or I was wrong somethere?
Comment #9
fagoYou are using the wrong UI and the wrong action - use the rules UI.
Actually you aren't using the rules module in your screenshot.
Comment #10
yurg commentedSorry, my #8 was regarding your suggestion to use [node:field_email-formatted] token instead of [field_email-formatted], as shown on my screenshot. Sorry again, probably I directed discussion to wrong way.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
mitchell commentedUpdated component.