Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Using umbraco v7.2.4 I have wired up
ContentService.UnPublishing += ContentService_UnPublishing; ContentService.Deleting += ContentService_Deleting; ContentService.Moving += ContentService_Moving;
The moving and deleting events do not fire. Ideally I just want to tap into deleting event and cancel the delete on certain conditions however deleting never fires nor does moving unpublishing works no problem.
Anyone seen this before?
Regards
Ismail
Hi
Delete doesn't fire when you 'delete' a bit of content from the tree.
Trashing fires as it's going to the recycle bin,
I think Deleting only fires when you empty the bin?
Kevin
Yup I added move which should fire when you delete as that first moves to recycle bin.
However moving does not seem to fire either.
I've used the Trashing event in the past that was firing when things went into the bin.
Trashing
uSync.Content uses them here https://github.com/KevinJump/jumoo.usync/blob/master/jumoo.usync.content/ContentEvents.cs
I havent't actually checked on the lastest v of umbraco but i think they are firing (no one has told me anyway)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Deleting event not firing
Using umbraco v7.2.4 I have wired up
The moving and deleting events do not fire. Ideally I just want to tap into deleting event and cancel the delete on certain conditions however deleting never fires nor does moving unpublishing works no problem.
Anyone seen this before?
Regards
Ismail
Hi
Delete doesn't fire when you 'delete' a bit of content from the tree.
Trashing fires as it's going to the recycle bin,
I think Deleting only fires when you empty the bin?
Kevin
Yup I added move which should fire when you delete as that first moves to recycle bin.
However moving does not seem to fire either.
I've used the
Trashing
event in the past that was firing when things went into the bin.uSync.Content uses them here https://github.com/KevinJump/jumoo.usync/blob/master/jumoo.usync.content/ContentEvents.cs
I havent't actually checked on the lastest v of umbraco but i think they are firing (no one has told me anyway)
is working on a reply...