Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
I was wondering if there's a specific way of handling media events in Umbraco v. 6? :-) I tried the old, fashioned way of doing this:
public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { Media.BeforeSave += (se, ea) => umbraco.BasePages.BasePage.Current.ClientTools.ShowSpeechBubble( umbraco.BasePages.BasePage.speechBubbleIcon.info, "Media save event cancelled", "Media save event cancelled"); }
But nothing happens when I hit save on a media item.
Anyone got an idea of how to do this? What I need exactly, is to be able to cancel the save event :-)
Thanks in advance.
- Bo
Hi Bo / all,
I'm also interested in knowing if there is any solution for this.
Any help would be much appreciated.
Thanks
Robert
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Cancelling media save event in Umbraco v 6
Hi all,
I was wondering if there's a specific way of handling media events in Umbraco v. 6? :-) I tried the old, fashioned way of doing this:
But nothing happens when I hit save on a media item.
Anyone got an idea of how to do this? What I need exactly, is to be able to cancel the save event :-)
Thanks in advance.
- Bo
Hi Bo / all,
I'm also interested in knowing if there is any solution for this.
Any help would be much appreciated.
Thanks
Robert
is working on a reply...