void ContentService_Publishing(Core.Publishing.IPublishingStrategy sender, Core.Events.PublishEventArgs <IContent> e) { //Umbraco.Web.UI.Pages.ClientTools client = new Umbraco.Web.UI.Pages.ClientTools((Page)HttpContext.Current.CurrentHandler); //client.ShowSpeechBubble(Web.UI.SpeechBubbleIcon.Warning,"Publish",string.Format("{0} ({1}) could not be published because these properties {1} did not pass validation rules."); e.Cancel = true; }
private void ContentService_Unpublished(IContentService sender, Core.Events.PublishEventArgs <IContent> args) => _notifier.Notify(_actions.GetAction <ActionUnpublish>(), args.PublishedEntities.ToArray());