Send notification including revision log message for node changes¶
Version v2
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
1 2 |
|
Purpose¶
This model sends an email when any node got updated. That email contains a couple of tokens, e.g. the name of the user who edited the node and the link to the node. It also contains the the revision log message that the user has left in the edit form.
As the author may skip the revision log, this model also makes that field required.
The creation of that model has been recorded and there have actually some unexpected difficulties, that you can watch live, how they got resolved: Watch the video
In version 2 of this model, we've added content moderation functionality and a section field for a wiki page content type, such that email notifications get sent to different recipients depending on state and section of the updated node.
The creation of this model's enhancement has also been recorded: Watch the second video
Dependencies¶
- config
- node.type.wiki
- module
- eca_base
- eca_content
- eca_form
- menu_ui
Used plugins¶
Events¶
Conditions¶
Actions¶
- Send email to admin
- Make revision log required
- Set role to reviewers
- Send email
- Set role to publisher
- Set role to admin
- Set email to original author
- Set email to products
- Set email to departments
- Set email to markets
Changelog¶
v1
-
Initial version
v2
-
Adding moderation states and sections