Hi,

I am new to using rules and tokens. I have been following online instructions but something is still wrong. I did simple rules test that prints username when content is displayed and it just shows me the text of the token instead. See screenshot.

When i go to token help screen it is blank and when i open up read me it is blank as well. I was under impression it would show available tokens and give me a clue to what i was doing wrong.

I will not be surprised if this is an error on my end.

CommentFileSizeAuthor
Screen shot 2013-01-25 at 9.15.53 PM.png72.28 KBcbluet

Comments

dave reid’s picture

Title: Token not displaying properly » Current user tokens not displaying in message action
Project: Token » Rules
Version: 7.x-1.4 » 7.x-2.x-dev
Component: Rules integration » Rules Core
Category: support » bug

The [current-user:name] token is correct but I think Rules provides a slightly different syntax of [site:current-user:*]. However, I tried all combinations of [current-user:name], [site:current-user] and [site:current-user:name] and none of them worked. This is a bug in Rules since I was able to reproduce it with the latest version.

tr’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

I can't reproduce this in the current version of Rules. Using [site:current-user] works in the System message action.