Closed (duplicate)
Project:
Rules
Version:
8.x-3.x-dev
Component:
User Interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2016 at 06:10 UTC
Updated:
29 Oct 2020 at 11:05 UTC
Jump to comment: Most recent
Comments
Comment #2
rooby commentedI realised after creating this that the rules data selector uses a separate system to token module tokens, but that you can use token module tokens in direct input mode.
It would be nice to have help text in direct input mode that mentions that you can use tokens and that has a token tree of available tokens.
Comment #3
rooby commentedComment #4
namwebs commentedHow? I can't get token module tokens to work at all...
Comment #5
rooby commented@namwebs
This was a while ago and I don't have admin access to that specific site anymore but I'm pretty sure I was using rules to send HTML emails (via the mimemail module) and I was using regular Drupal tokens in the subject and body fields of the email.
It's possible that is something that mimemail implements (running that text through the tokeniser) and that other rules actions and conditions don't do it by default.
Comment #6
namwebs commentedThanks @rooby. I will look into that.
Comment #7
tr commentedMime Mail in Drupal 8 does not yet support Rules - none of that code has been ported from D7. So there is no special "Send HTML e-mail" action provided by Mime Mail like there was in D7.
Rules in D8 does not support Token module tokens. However, if you code your own conditions/actions you may implement your own Token module token replacement on the values passed into your conditions/actions.
Comment #8
namwebs commentedThanks.
A solution which works for me is to use D8 Rules to redirect to a page which uses Views Send to send mail. Views Send does support token module tokens so this combo gives good flexibility.
Comment #9
rooby commentedAh yes, I was definitely using Drupal 7 when I created this issue. It's possible I created it as a D8 issue accidentally or due to new features going into D8 first.
Comment #10
fagoduplicate of #2745401: Add token information when using direct input mode
Comment #11
rooby commented@fago, that's this issue.
Comment #12
mpotter commentedIn #10, you closed as Dup, but referenced this same issue. If there is a different issue that is the main issue, post it here and re-close this. Otherwise re-opening this.
Comment #13
tr commentedLet's mark this as duplicate of #2850198: Twig-style tokens and data selection autocomplete are confusing, because that other issue has a far better issue summary and task list for addressing this problem.
Comment #14
deepak_mishra commentedI want to send an email, i created rules but in rules i am not able to get the token or replacement pattern.