Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I am looking to send an email to author after admin approve the node which submit by user, but I don't see there is something like "after node published" in the "React on event" am I missing something or there is no such things exist anymore ?
"publishing" a node is just changing a value stored on the node. There is no difference between publishing a node and changing the node title as far as Rules is concerned.
The event is "After updating a content item". This event is triggered for any changes to a node.
You also need to use Data Comparison conditions to check if the data value you're interested in has been changed. If you're checking to see if the title has changed, you would compare node_unchanged.title to node.title to see if they're different. If you're checking to see if the node was published, you would check that node_unchanged.status is FALSE and node.status is TRUE. You look at both the unchanged node and the changed node because you want to only react when there has been a change in the published status.
Thanks, I am adding the comparison data, but plese suggest what's data value I should add, I don't see there is an option like “TRUE" or "False" that I can selected.
Here, even easier - I forgot we had a Condition for "Node is published".
The important part is still the same, when the node is changed, you have to check that the old version of the node was unpublished AND the new version of the node is published. Here is an export of a Rule that works. You can import this and it should work on your site.
Comments
Comment #2
tr commented"publishing" a node is just changing a value stored on the node. There is no difference between publishing a node and changing the node title as far as Rules is concerned.
The event is "After updating a content item". This event is triggered for any changes to a node.
You also need to use Data Comparison conditions to check if the data value you're interested in has been changed. If you're checking to see if the title has changed, you would compare node_unchanged.title to node.title to see if they're different. If you're checking to see if the node was published, you would check that node_unchanged.status is FALSE and node.status is TRUE. You look at both the unchanged node and the changed node because you want to only react when there has been a change in the published status.
Comment #3
freelylw commentedThanks, I am adding the comparison data, but plese suggest what's data value I should add, I don't see there is an option like “TRUE" or "False" that I can selected.

Comment #4
tr commentedHere, even easier - I forgot we had a Condition for "Node is published".
The important part is still the same, when the node is changed, you have to check that the old version of the node was unpublished AND the new version of the node is published. Here is an export of a Rule that works. You can import this and it should work on your site.