Copied to clipboard

Flag this post as spam?

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


  • Carl 77 karma points
    Dec 14, 2010 @ 15:36
    Carl
    1

    Document class action handlers

    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,

  • Bo Damgaard Mortensen1017 karma points
    Dec 15, 2010 @ 23:56
    Bo Damgaard Mortensen
    0

    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.

  • Carl77 karma points
    Dec 16, 2010 @ 10:24
    Carl
    0

    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 Sign in or register to post replies

Write your reply to:

Draft
Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community. This site is running Umbraco version 7.3.0-beta3