Forums / Developer / notification on state change

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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