drupal8

Drupal 8 Workflow Notifications with Rules Part 3

March 6, 2018
Web Development
Drupal, drupal8, Rules, Workflow

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 ...

Changing the Default Content Moderation State in Drupal 8

February 27, 2018
Web Development
Drupal, drupal8

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. ...

Drupal 8 Workflow Notifications with Rules Part 2

February 20, 2018
Web Development
Drupal, drupal8, Rules, Workflow

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 ...

Drupal 8 Workflow Notifications with Rules Part 1

February 13, 2018
Web Development
Drupal, drupal8, Rules, Workflow

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. ...

Headless / Decoupled Drupal 8 First Go

October 4, 2017
Uncategorized
decoupled drupal, drupal8, headless drupal

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. ...