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?
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.
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?
in v4, you can subscribe to almost anything, including media. Here's an overview of all events.
Cheers,
/Dirk
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!
Yes, action handlers (implementing IActionHandler) are pre v4, and I don't think those cope with media
Cheers,
/Dirk
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
Brilliant, thanks.
is working on a reply...