Categories

(83)
(69)
(8)
(34)
(74)
(149)

Drupal 8 Module: Rules

20.09.2016
Drupal 8 Module: Rules
Author:

Rules are everywhere: at school, at work, in life in general ... and there are some Rules in Drupal 8 as well! Although it’s definitely not what you think it is :)

We never get tired of discussing Drupal 8. We especially like sharing, with you, would cool modules were moved there (like the Workbench Moderation module we’ve recently talked about). That’s simply because we want you to use them and take everything that Drupal offers, being one of the most widely used CMFs nowadays.

Now the time has come to speak about another module of big importance, though it is still in alpha. Though its name is rather confusing, it can have a huge impact on the way you manage your site’s workflow. The Rules module is ready to be analyzed. Let’s just dive into it.

How the Rules module works

This module allows web developers to create automated workflows on a site using the so-called reactive rules (also known as ECA rules).

What are these? If a certain Event happens on a site under some kind of Condition, it triggers an Action. It can be anything you can imagine — for example, if somebody leaves a comment on your content (event), and it’s not you (condition), the email is sent to you so that you can respond as soon as possible (action). This way you don’t receive annoying emails whenever you answer to somebody in the comments section, but you are still notified when a new comment from another user appears.

See how the Rules module can greatly affect the site’s workflow, and how easy it can be to control those simple but important things?

In fact, those conditions and actions can be much complexer than our example. Developers have a possibility to automatize not only simple things, but to control much more complicated actions on a site.

Learn how to create your own rules here.

Rules for end-users

We’ve already told you many times that Drupal 8 is the easiest version to use, and one key thing that makes it so simple is the way modules are presented.

The Rules module is especially important because it can be used by literally everybody! It doesn’t require any programming and coding skills whatsoever. All of the settings are done with the help of the user interface.

Josef Dabernig, one of those cool people who helped to introduce the Rules module in Drupal 8, says: “Putting power into the hands of the end-user is what I call 'Drupal's most important design decision’”.

So we have the opportunity to control our site and its whole workflow with the help of the Rules module and even without knowing anything about coding. How cool is that?

Rules in Drupal 8

Speaking about D8 though, the Rules 8.x is just another version of the same module, but built on D8’s API that wasn’t available in D7. That helped developers to simplify the module’s custom code base.

Drupal 8 is all about simplicity :)

Conclusion

So, here’s what we’ve learned: the Rules module for Drupal 8 is a good way to control your site’s workflow, and you can use it even if you know nothing about coding. It’s something you definitely need to try out. Contact our Drupal development agency if you need some help with installation and enjoy your perfectly managed workflow!

9 votes, Rating: 2.3

Read also

1

So, Drupal does not seem inclined to stop migrating modules any time soon, and we are not complaining. So much information to explore, so many things to share with you guys. And this time we’re...

2

Sometimes 404 errors are hard to avoid, and which can significantly slow a website down. Luckily, there is the Fast 404 Drupal 8 module that prevents it.

3

E-commerce in Drupal 8 is a topic of interest for many developers. If you are among them, you’ve come to the right place — our Drupal developer has written a blog post on the Commerce 2.x module....

4

Here is one of the ways to make a Drupal website content editor’s life much easier. It’s called the Inline Entity Form module, and it’s been ported to Drupal 8 earlier this year. Read on.

5

Among Drupal 8’s many shiny features, the support for web accessibility standards shines particularly bright, although it is not immediately noticed by everyone. However, it’s noticed by the...

Subscribe to our blog updates