At the Message templates settings, each template can use several tokens. These include two tokens for a user login name: [user] for the notification's recipient and [user-name] for the user who triggered the notification. I am using the RealName module to display user's real names instead of their login names and would like the real names to also appear in the notifications. There is a [realname] token for the notification's recipient, but not a corresponding token for the user who triggered the notification (something like "[user-realname]"). Would it be possible to also add such a token?

Comments

univate’s picture

Project: Messaging » Real Name
Version: 6.x-2.2 » 6.x-1.x-dev

This is something for the realname module to implement and expose as available tokens.

mechanoid’s picture

This would be fantastic. I am sending out rules-based notifications for workflow purposes.

Usernames reflect corporate login names in my organization. It would be nice for the notification emails to token replace with their Realname.

Current example:
If approved, doej needs this project completed by 2009-01-05.

Realname token ideal:
If approved, John Doe needs this project completed by 2009-01-05.

Any chance of getting [user-realname] exposed as a token in the next version?

Bilmar’s picture

subscribing

pdumais42’s picture

subscribing

aleada’s picture

this would be very helpful in all messaging functions....

robby.smith’s picture

+1 subscribing

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

On a customer site I am working on, in PathAuto we use [realname], which is already provided. I would assume that Rules can see that token.

robby.smith’s picture

Status: Postponed (maintainer needs more info) » Active

Hello,

I found [realname] to be available in the action 'Send a mail to a user'

But when I use [realname] more than once in the message it does not work properly (anything after the first use of [realname] actually shows '[realname]' instead of the replacement. Is this normal?

Thanks!

nancydru’s picture

I would think not. You should ask that of the module providing the action.

hass’s picture

Issue summary: View changes
Status: Active » Closed (outdated)