x First time here? Check out the FAQ

Learn from 350 other Umbracians at the annual Umbraco Conference - CodeGarden '13.
More than twenty high quality sessions, open spaces, hackathons and social events you'll remember. Not to be missed!
Less than 25 tickets left - get yours now!

  • Avatar50posts71karma

    Document class action handlers

    Carl started this topic December 14, 2010 @ 03:36 , this topic was edited at: Thursday, December 16, 2010 10:24 AM

    Hi All

    I want to add some specific loggin in my soluton for certain events using the Document ActionHandlers (eg document.new and document.afterpublish)

    However I'm finding that some events (eg delete) actually fire several events - unpublish and move (to trash)

    I've looked at the source and it makes sense that they should, but is there any way without modifying the umbraco source I can get s single event for delete (fires unpublish and move to trash), New (fires new and save) and others out there

    thanks,


  • Replies

  • Avatar582posts725karma
    Comment with ID: 57622
    Bo Damgaard Mortensen posted this reply December 15, 2010 @ 11:56

    Hi Carl,

    Without having checked the sourcecode, what happens if you call Delete(true)? So the document will be permanently deleted. Just a thought really ;)

    Edit: sorry, I misread your post - thought you only needed a "direct event" for deleting documents.


  • Carl posted this reply December 16, 2010 @ 10:24

    Hi Bo

    It's not any method I'm calling, I'm merely hooking into events fired when users add or delete files using the umbraco interface

     


Please login or Sign up To post replies