Copied to clipboard

Flag this post as spam?

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


  • Brian Lacy 28 posts 101 karma points
    Apr 14, 2016 @ 17:49
    Brian Lacy
    0

    Backoffice Notifications not working on Sort

    Here's the test code inside my custom ApplicationEventHandler:

    ContentService.Saved += (sender, e) =>
    {
        e.Messages.Add(new EventMessage("Nifty", "Some nifty message here!", EventMessageType.Warning));
    };
    

    This works fine for normal content Create/Save scenarios, but NOT when sorting nodes within the Content Tree. Note that Sorting also triggers the Saved event.

    I'd like to know if there's any way to get this working?


    The best explanation I can think of -- which I haven't yet been able to verify -- is that for some reason, when the left-hand dialog pane is showing, these Notifications are blocked. Is this true? If so it sounds like a bug..?

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Apr 16, 2016 @ 14:22
    Dennis Adolfi
    0

    I have a similar situation but with the ContentService.Moving event. I would like to show a message when a node is moved, but the message does´nt show.

    e.Messages.Add(new EventMessage("Moved", "Somthing here", EventMessageType.Success));
    

    No exceptions or other misbehaving, just the message is not showing.

    I think you are on to something about the left-hand dialog pane blocking notifications.

Please Sign in or register to post replies

Write your reply to:

Draft