Tag Archives: Drupal

Changing the Default Content Moderation State in Drupal 8

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 … Continue reading

Posted in Web Development | Tagged , | 8 Comments

Drupal 8 Workflow Notifications with Rules Part 2

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 … Continue reading

Posted in Web Development | Tagged , , , | Leave a comment

Drupal 8 Workflow Notifications with Rules Part 1

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 … Continue reading

Posted in Web Development | Tagged , , , | Leave a comment

Drupal 7 Views Sort by Two Date Fields

To achieve this you will need to implement hook_views_query_alter() in a custom module. I did not do this in Views UI. A recent project at Headscape required me to build view listing two different content types that would use two … Continue reading

Posted in Web Development | Tagged | Leave a comment

Stepping back to move forward with ReactJS

I’ve been using ReactJS as I have been exploring Headless / Decoupled Drupal and have so far found it to be very nice to work with. However, as I am not overly familar with it I’ve found myself looking up … Continue reading

Posted in Web Development | Tagged , , | Leave a comment

Drupal 6 num_rows

I’ve been working on a site powered by Drupal and needed to find the number of rows a database query returned. Simple enough and quite common procedure. But, the Drupal database API no longer offers the db_num_rows() function. I had … Continue reading

Posted in Uncategorized | Tagged , , | 3 Comments