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,
I'd like to call pop up window and set custom error in admin page.
I use the following code:
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{ ContentService.Published += ContentServicePublished; }
private void ContentServicePublished(IPublishingStrategy sender, PublishEventArgs
throw new Exception("custom message");
}
If you are using Umbraco 7.3.0, this has been added so you can add messages to trigger a notification event:
http://issues.umbraco.org/issue/U4-5927
(scroll down a bit) and you will see:
e.Messages.Add(new EventMessage("Mwahahahaha!", "I've cancelled all of your saving!", EventMessageType.Error));
is that the kind of thing you are after ?
regards
Marc
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Pop up an error in ApplicationStarted event
Hi,
I'd like to call pop up window and set custom error in admin page.
I use the following code:
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
private void ContentServicePublished(IPublishingStrategy sender, PublishEventArgs
throw new Exception("custom message");
}
If you are using Umbraco 7.3.0, this has been added so you can add messages to trigger a notification event:
http://issues.umbraco.org/issue/U4-5927
(scroll down a bit) and you will see:
is that the kind of thing you are after ?
regards
Marc
is working on a reply...