Copied to clipboard

Flag this post as spam?

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


  • Jonas Eriksson 930 posts 1825 karma points
    Feb 08, 2010 @ 09:46
    Jonas Eriksson
    0

    Action handler to mirror media folder

    Is it possible to use an action handler in the media section? I'd like to make a mirror of a media folder. I read about it in the docs, one from 2008 I think, and there it's mentioned that action handlers only works in the content section, is that still so in current versions?

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Feb 08, 2010 @ 09:55
    Dirk De Grave
    1

    in v4, you can subscribe to almost anything, including media. Here's an overview of all events.

     

    Cheers,

    /Dirk

  • Jonas Eriksson 930 posts 1825 karma points
    Feb 08, 2010 @ 11:09
    Jonas Eriksson
    0

    Cool, thanks! Ah, and there's a great doc about events as well. 

    http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/event-examples

    But this is standard event subscribing, what about "Action Handlers" (umbraco.BusinessLogic.Actions.IActionHandler), is that the pre v4-way?

    Cheers!

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Feb 08, 2010 @ 11:37
    Dirk De Grave
    1

    Yes, action handlers (implementing IActionHandler) are pre v4, and I don't think those cope with media

     

    Cheers,

    /Dirk

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Feb 08, 2010 @ 11:43
    Richard Soeteman
    1

    Action Handlers are deprecated  in V4, they are only in for backwards compatibility. Events are the way to go. Also Action Handlers only work on content, not media.

    Cheers,

    Richard

  • Jonas Eriksson 930 posts 1825 karma points
    Feb 08, 2010 @ 15:26
    Jonas Eriksson
    0

    Brilliant, thanks.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies