Hello everybody.
I’m currently developing a plugin for MODx 0.9.6 to create resized Images when a Document is saved.
So far i used the "OnDocFormSave" Event and everything works just fine, but i’m not able to alter the contents of a TV, if say, the path to the Image has changed. Maybe i should use the "OnBeforeDocFormSave" Event, but first i need to know how to change the contents of my Template Variables.
Does anybody have some knowledge to share? Do i have to inject my content directly into the DB using SQL? Or is there a better way?
Any help is appreciated.
Cheers