I am looking for a way to reference the email address of a user selected in a cck user reference field. My objective is to trigger an email to the newly selected user (using workflow-ng) when the selection is changed. Greggles said that functionality should be in 5.x-1.x-dev and asked if I could test it out (see http://drupal.org/node/126423). I installed the dev version (hopefully correctly) but I didn't see a token for user reference email where I expected it to be (under CCK user reference tokens). Am I looking in the right place? Perhaps I didn't install correctly? I had the 5.x-1.11 version installed and I simply unzipped the 5.x-1.x-dev into the same modules directory and said "yes to all" to replace the existing files with the new ones of the same name.
Thanks for your help!
Comments
Comment #1
mooffie commentedThe only feature that was eventually added there is an [author-email] token. This token works for the node author only.
Email tokens for CCK's userreference field weren't added. Unfortunately. Because, in Greggles words:
"I got rid of the cck bits because that's now in cck itself."
He means that it's something the CCK people should bother with. D6's CCK ships its own Token support. (D5's CCK doesn't.)
Comment #2
missC commentedOK, I understand. Unfortunately, I can't upgrade to D6 since many of my modules don't support it yet...
Comment #3
gregglesSome of D5's cck added support for some tokens, but yes, D6 is where the work really happened.
Note that there is also the tokenSTARTERKIT that you can use to more easily build your own tokens.