Copied to clipboard

Flag this post as spam?

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


  • Bo Damgaard Mortensen 719 posts 1207 karma points
    May 07, 2013 @ 12:11
    Bo Damgaard Mortensen
    0

    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:

    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

  • Robert 11 posts 31 karma points
    May 21, 2013 @ 17:33
    Robert
    0

    Hi Bo / all,

    I'm also interested in knowing if there is any solution for this.

    Any help would be much appreciated.

    Thanks

    Robert

Please Sign in or register to post replies

Write your reply to:

Draft