![]() What we’re going to do is create a rule that upon saving a new node of type “Page” it will send out a notification email to all users of a specified role. It takes advantage of some neat functionality within the module to achieve the end result. If you’re a little confused by any of those descriptions I’ve created a little tutorial based on a rule we have used often in the past. Variable - Variables store values for use within conditions and actions and can act as tokens to load in dynamic content where it is needed. ![]() Rule - Rules are the event types, this is where you’ll choose what you want to react on and bring all your other pieces of config together to trigger the desired action.Ĭondition - Conditions are used to evaluate an expression such as a data comparison, logical AND/OR, etc.Īction - Actions are where you’ll execute your desired functionality, actions can be placed within other actions or be part of conditions or rules. Here’s a list and a brief rundown of the various parts. Unlike Rules, this module uses different sets of reusable configuration that you can mix and match to create your rule. At any point in the process we can use “Variables” to dynamically add values to separate components of the rule. At its’ core you have “Rules” that are the events that will trigger “Actions” when a specific set of “Conditions” and contexts are met. To put it through its paces, I set out to try building a couple of rules in Drupal 8 that we used often in 7.Īlthough the workflow is a little different than you may be used to in Rules the concepts and language are pretty much the same. While still a fairly young module, it is already quite powerful and stable. After some googling and unsuccessful attempts with other modules I stumbled upon Business Rules. This left me looking for something else to step in as our Swiss Army knife that could help satisfy random functional requirements.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |