From ionize 1.0.0, you can use Events.

Events are fired by ionize when something happens, like "one article is saved", "one media is deleted" or "one user has logged in".

Each event can be observed by core libraires or by modules libraries.
For example, the event "One media was deleted with the Filemanager" is internally observed and when this event happens, the deleted media is unlinked from pages or articles it was linked to.

Naming convention

Each event has one name to identify it.

The convention to name one event is <Object>.<action>.<sub_action>.<result>.

Some examples :

  • : Fired when one article was successfully saved
  • : Fired before one article save
  • Filemanager.upload.success : Fired when one file was successfully uploaded by the Filemanager