Forums / Developer / notification on state change

notification on state change

Author Message

Marko Žmak

Tuesday 09 August 2011 5:53:38 pm

When using subtree notifications...

It seems like there's no posibility to receive email notification when a state of an object is changed.

So imagine this scenario:

  • we have an editorial workflow with an approve mechanism that is using object states
  • when a new object is published it gets the status "draft" which is not visible by regular users
  • editor approves the object by setting it's state to "approved and published" - then it's visible to regular users

So in this scenarion the regular users that are subscribed to a category won't be notified when an object in this category becomes visible to them (changes state to "approved and published").

Adding create-notification part to the body of updateobjectstate operation would solve this.

Would this be the right way to add this feature?

P.S. I have played a little bit with it and it works with just a few modifications to kernel/content/operation_definition.php and kernel/state/assign.php.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth