drupal-eca-recipe / eca_lib_0017
Send notification including revision log message for node changes
Requires
- drupal/core: >=11.2
- drupal/eca: ^3
README
ID: eca_lib_0017
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
Installation
## Import recipe
composer require drupal-eca-recipe/eca_lib_0017
# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/{{ rawid }}
# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0017
# Rebuilding caches is optional, sometimes required:
drush cr