Reputation: 467
First, excuse my english.
I need to control moving some nodes to trash by it's alias. I have created my custom EventHandler for the "Document.BeforeMoveToTrash" event. I can set the Cancel flag to true, for preventing this action.
Is there any way to set error message in event handlers and show it in backend infobubble? I want to show error with some additional error details.
P.S.: Error bubble in my understanding is:
Upvotes: 0
Views: 1190
Reputation: 3447
You can create your own speech bubble, but I don't know if it will be overridden by the before save event.
In a custom userControl or method you would be able to use this code to create your own speech bubble.
var clientTool = new Umbraco.Web.UI.Pages.ClientTools((System.Web.UI.Page)HttpContext.Current.CurrentHandler);
clientTool.ShowSpeechBubble(SpeechBubbleIcon.Error , "Choose first a content page", "Page has not been added.");
Upvotes: 1