Skip to content

Notify author when content is published

Version

Initialising viewer…

You can apply this model as a recipe (Drupal 10.3 or later) to your own Drupal site:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Import recipe
composer require drupal-eca-recipe/notify_author_on_publish

# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/notify_author_on_publish

# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/notify_author_on_publish

# Rebuilding caches is optional, sometimes required:
drush cr

Purpose

Sends an email to the author of a node when that node becomes published, including a link to the published page. Covers both a node created directly in published state and a node that transitions from unpublished to published. Already-published nodes that get saved again do not trigger another email.

Dependencies

  • module
    • eca_base
    • eca_content
    • modeler_api

Used plugins

Events

Conditions

Actions

Changelog

Initial version