Quote from: kylej at Oct 16, 2006, 07:59 AM
All of the following events are available for documents. These can be accessed by creating a plugin.
OnBeforeDocFormDelete
OnBeforeDocFormSave
OnCreateDocGroup
OnDocFormDelete
OnDocFormPrerender
OnDocFormRender
OnDocFormSave
OK, I create a doc from a template, when saving this doc I can use the OnDocFormSave event to create a thumbnail.
I then edit the document and edit the contents of the TV containing the image file, perhaps erasing it, perhaps changing the image filename.
When I save the document I can create a new thumbnail using the OnDocFormSave event. However the old thumbnail is now detached and represents unreclaimable resources.
Do I use the OnBeforeDocFormSave event to access the previous value?
Also the delete events, are they when items are marked for delete or when the item is actually removed?
Ed