Seemes cut and dry, but I can't seem to get the following working These are assistants to the users (in real life). Its purpose is to allow me to add one email address per line for people that should also be notified, in addition to the author. I've recently added a long text field on users called Also notify. I have a Rule that fires when the moderation state of a node changes (via Workbench) by anyone other than the author, the author of the node is notified via email (action is Send email). If you wish to post something of that nature we suggest you check out 's paid services job board Our Friends Friday: Useful things to know - Things you wish you had known earlier about Drupal.Thursday: Development questions & discussion - Coding questions go here.Wednesday: Contrib modules chat - Talk about recently tried modules, recommendations, warnings, etc.Tuesday: Triumphant Tuesday - post recent Drupal successes and site launches.Monday: Beginner questions - no question is too easy.Would you or someone you know make for an interesting Drupal AMA? Message the mods. When would you like to start? Let us know!.Mike Gifford (Accessibility Core Maintainer Drupal 8) – Click Here. ![]() The place for news, articles and discussion regarding one of the top open source (GPL) CMS platforms: Drupal. When doing so, you'll be able to select the token for file_list_var_for_email_body to include anywhere in your eMail body.Check out the sidebar for our AMA schedule, or view our past AMA's. And finetune the details (configuration) of your Rules Action to Send an eMail. Move that Send an eMail action outside your loop, and after the loop completed.Within your loop, for each iteration, prepend or append the value for each list_item to that variable file_list_var_for_email_body (see where we're going?).Say you name the variable file_list_var_for_email_body. Add some new Rules variable that will be used later on as part of the eMail body, before the start of your loop.In your case, you could make it work like so: The trick to do so is similar to what is shown in the Rules example included in my answer to " How to concatenate all token values of a list in a single field within a Rules loop?". However, if what you're looking for (= the list of files as stored in your file field) is not available, then just (a) make it available first and (b) wait with your Send an eMail action until it is available. However, by doing so, your Rules Action to Send an eMail no longer has access to that crucial variable list_item which is like a local variable inside your loop. ![]() So yes, that's a way to only execute such Send an eMail Rules Action 1 time (instead of for each iteration of the loop). And instead that Send an eMail Rules Action should only be performed 1 time after the Rules loop is completed finished". ![]() With that " move Email to the left", you must mean something like " Using the Rules UI, I change the Rules Action to Send an eMail, so that it is no longer considered as one of the Rules Actions to be performed for each iteration of the loop. When I move Send Email to the left, I cannot access the " list_item" variable. That's not really what you want of course. Your rule works as implemented: for each iteration of your loop, you have a Send an eMail action. The Rules Action to Send Email is in a Rules loop, and I get one email per item in list
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |