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.
February 6, 2018
Producing a rough sketch on a piece of paper may seem more like the realms of a designer desperately trying to get an idea out of their head into a physical form to share with others but I find it can also help me develop backend code.
Planning # When starting a new bit of work I normally have the rough idea in my head of how I’m going to modularise the code and what functionality each piece will need.
January 30, 2018
When we develop sites we start off locally and in a development environment. During the development process we continue this process as we evolve the design and functionality.
But there comes a point where the site we’re working moves to the stage where it will become the live site. At this point it’s preferable to move it to the live environment.
Configuration # We try and match development and live environments as much as possible but it’s not always possible to get exact matches due to various constraints.
January 23, 2018
As I spoke about in the previous post about redesigns my work generally focuses on clients who have existing sites that need to be moved to a new Content Management System and have a new design applied to them.
Whilst this can have it’s advantages for design work by allowing the front end developers far more freedom with markup it has some challenges for the backend.
Discovery # Every database I have received have been from a different CMS, some have been MySQL and some have been Microsoft SQL database but all have required some discovery.
January 17, 2018
I can’t remember the last time I was involved in making a brand new website rather than an update or redesign. Maybe it’s just the sort of work we are suited to at Headscape and you may find differently.
A redesign often brings with it different challenges to making a site from scratch, one of these is challenging the client to provide new types of content. By sharing a vision of how their site could be it encourages clients to improve their site rather than continue with the same old processes.
January 8, 2018
Design kickoffs are great, it’s the start of the project, expectations are high, ideas are thrown around liberally and everyone is excited about what’s to come. So why should you bring along the person responsible fo database tables and code no one will ever see?
Get to know the business # Invitations to tender and design briefs are very useful documents to get an initial idea of what a business does and what they offer.
December 12, 2017
I have a project in mind that needs internet connectivity but I won’t have access to WiFi so when I saw the Arduino MKR GSM 1400 with it’s GSM capability I thought I could use it to send my data over 3G.
Before I get to trying anything like that this is my experience using it for the first time.
Where do I put the SIM Card # I already had a SIM Card from GiffGaff to use I just needed somewhere to put it.