Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jul 28, 2015 @ 09:07
    Ismail Mayat
    0

    Deleting event not firing

    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

  • Kevin Jump 2327 posts 14813 karma points MVP 8x c-trib
    Jul 28, 2015 @ 10:06
    Kevin Jump
    0

    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

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jul 28, 2015 @ 10:25
    Ismail Mayat
    0

    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.

  • Kevin Jump 2327 posts 14813 karma points MVP 8x c-trib
    Jul 28, 2015 @ 10:40
    Kevin Jump
    0

    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)

Please Sign in or register to post replies

Write your reply to:

Draft