Hi,

when a node is modified I want send at the author (and admin) a notified mail that shows the field that has been modified. Is possible?

Alternatively, is possible send a notified mail only when a specified field is modified?

With the node I have not problem but I can't show the field that has been modified.

Thank you in advance.

gp

Comments

JMC’s picture

I needed to do something like this in the past and I used the Diff module which makes the [node:diff] token available to you.

I'm assuming you're using Rules to handle the "After updating existing content" event, at which point this token contains some formatted html showing the changes to the node which can be emailed to the author.

giupenni’s picture

Thank you JMC, I'm trying to use Diff module but in 'Actions' I not find the token [node:diff] .

...!

giupenni’s picture

My mistake but still not works.
The token seems not works. I received an email with message body: (No previous revision available.)

I have configured the rules in this way:
Events: 'After updating existing content of type Proprietà'
Actions: 'Send Email' with parameters [node:diff] in message body.
I not understand.

...!

JMC’s picture

Maybe try the following:

  • check first that you have revisions turned on for the content type(s) you want to do this on
  • then you may also need to perform a check (or "Condition") in Rules which checks the "Content is of type", this often makes more tokens/replacement-patterns available
giupenni’s picture

> check first that you have revisions turned on for the content type(s) you want to do this on
>
works but unfortunately the output is no friendly for user. :(
And seems notified in email diff also fields that I have not changed.

...!

JMC’s picture

I've just checked and I'm using [node:diff-markdown] which may be more user-friendly, also I think I'm sending HTML emails which may also help.

(I haven't encountered the issue with unchanged fields being included though)

giupenni’s picture

With HTML is a bit friendly.
Unfortunately I have another problem, the user must turn on the flag of revisions when edit he node.
And the user does not always do this.
I can force this?

...!

JMC’s picture

In the content type settings, the default publishing options can be checked on "Create new revision", this will do it automatically for each edit.

giupenni’s picture

Right!!!
Damn, I'm totally crazy.

...!