What I’m trying to do is the following:
I have to update a non-modx database table with values that are stored inside a modx-container.
Every time a document inside container x is deleted, I need to trigger some kind of mySQL UPDATE / DELETE query.
Every time a document inside container x is created, I need to trigger some kind of mySQL INSERT / UPDATE / DELETE query.
Did someone achieve something similar already? Can you recommend something?
I probably have to assign two separate system events for this, i.e. create two plugins.
One would most probably be OnDocFormDelete. But is there something like OnDocFormCreate or OnDocFormNew also? I’m a bit stumped here... OnDocFormSave might work, but if I modify an existing document, I don’t need to trigger anything.