March 6, 2018
In previous posts I’ve covered enabling and editing a Workflow and then sending an email when a new content moderation state has been saved.
In this post we will complete the loop by sending emails when a content moderation state has been updated.
In this example an editor will publish the node and the rule will email the node creator to tell them it has been published.
Head to the Rules admin page /admin/config/workflow/rules and click Add reaction rule
February 27, 2018
I have been working with the Content Moderation module in Drupal 8 and one slight niggle we came across was the default option for the Moderation state.
If the current state was In Review we would like the Change to option to also be In Review rather than Draft.
This means the default is to keep the entity in it’s current state rather than switching to a new state.
February 20, 2018
In my previous post I talked through setting up Content Moderation with a review state. In this post we will complete the process by sending email notifications via the Rules module when the moderation state is changed.
Install Rules # To enable the Rules module we first need to require it via Composer. Run the following from the command line in the root of your project
composer require drupal/rules
February 13, 2018
For Drupal projects I’ve always used the comprehensive suite of tools provided by Workbench. But when I started a new project and saw that Workflow is hopefully making it’s way into core it felt like a good time to try it out. One part of the project was the addition of notifications when Workflow states were changed. With the Rules module also receiving lots of attention I decided combining the two modules was the best approach.
October 4, 2017
The installation of a minimal Drupal setup is very quick and easy. From there I enabled a few modules and a theme to help me create some data.
Modules enabled Field UI Image Views View UI RESTful Web Services I also installed the Devel module to help with dummy content population of my content type Article.
A common function of a website is to list content in an order, newest items or most relevant, and paginate this list.