I have implemented to listen to event. But some of them does not work. The code worked correctly with Saved and MenuRendering event but does not work with Deleted and also Deleting. I am using version 7.2.2. Do I miss something ? Thanks
Your overrides are processed when the Umbraco application starts so unless you've restarted your application (by recycling the App Pool) then these intercepts won't fire.
Hi Maff
Thank you for your reply. I am testing from localhost visual studio. Everytime I try to debug with F5 then I think the application has been recycled so the events should work fine but in reality it does not. I tried with F5 and create some stuff and save. SAVED event raise. Right click on my content. MenuRendering event raise. But Right click and delete item. DELETED event does not fire. That's weird
When you right click > delete an item, you're not actually deleting it but moving it to the Recycle Bin. So try overriding the TRASHED event rather than the DELETED event.
See here for a full list of the Content Service events and an explanation of when they fire.
Some events does not fire
I have implemented to listen to event. But some of them does not work. The code worked correctly with Saved and MenuRendering event but does not work with Deleted and also Deleting. I am using version 7.2.2. Do I miss something ? Thanks
Hi Son,
Your overrides are processed when the Umbraco application starts so unless you've restarted your application (by recycling the App Pool) then these intercepts won't fire.
Thanks,
Maff
Hi Maff Thank you for your reply. I am testing from localhost visual studio. Everytime I try to debug with F5 then I think the application has been recycled so the events should work fine but in reality it does not. I tried with F5 and create some stuff and save. SAVED event raise. Right click on my content. MenuRendering event raise. But Right click and delete item. DELETED event does not fire. That's weird
Hi,
When you right click > delete an item, you're not actually deleting it but moving it to the Recycle Bin. So try overriding the TRASHED event rather than the DELETED event.
See here for a full list of the Content Service events and an explanation of when they fire.
Thanks,
Maff
is working on a reply...