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?

CommentFileSizeAuthor
#8 actions-cck8email-token.png7.69 KByurg

Comments

slosa’s picture

Assigned: slosa » Unassigned
fago’s picture

Status: Active » Fixed

Probably the token.rules.inc file you currently have to manually add. http://drupal.org/node/286809

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

yurg’s picture

Status: Closed (fixed) » Active

Sorry 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.

fago’s picture

Status: Active » Fixed

when 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.

yurg’s picture

@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:

Type	action
Date	Tuesday, September 23, 2008 - 07:49
User	admin
Location	http://domain.tld/node/add/client
Referrer	
Message	Sent email to [field_email-formatted]
Severity	 notice
Hostname	xxx.xx.xx.xx

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!

fago’s picture

yes, open a new issue.

[field_email-formatted] - This token is wrong, probably it should be [node:field_email-formatted].

yurg’s picture

StatusFileSize
new7.69 KB

Last 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?

fago’s picture

You are using the wrong UI and the wrong action - use the rules UI.

Actually you aren't using the rules module in your screenshot.

yurg’s picture

Sorry, 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

mitchell’s picture

Component: Miscellaneous » Rules Core

Updated component.