static void Language_AfterSave(Language sender, global::umbraco.cms.businesslogic.SaveEventArgs e) { if (!uSync.EventsPaused) { SaveToDisk(sender); } }
void MediaBeforeSave(global::umbraco.cms.businesslogic.media.Media sender, global::umbraco.cms.businesslogic.SaveEventArgs e) { if (UmbracoConfig.For.UmbracoSettings().Content.ImageAutoFillProperties.Any()) { var property = sender.GenericProperties.FirstOrDefault(x => x.PropertyType.DataTypeDefinition.DataType.Id == new Guid(Constants.PropertyEditors.UploadField)); if (property == null) { return; } FillProperties(sender, property); } }
void MediaBeforeSave(global::umbraco.cms.businesslogic.media.Media sender, global::umbraco.cms.businesslogic.SaveEventArgs e) { if (UmbracoSettings.ImageAutoFillImageProperties != null) { var property = sender.GenericProperties.FirstOrDefault(x => x.PropertyType.DataTypeDefinition.DataType.Id == new Guid("5032a6e6-69e3-491d-bb28-cd31cd11086c")); if (property == null) { return; } FillProperties(sender, property); } }
private static void Template_AfterSave(global::umbraco.cms.businesslogic.template.Template sender, global::umbraco.cms.businesslogic.SaveEventArgs e) { LogHelper.Info <SyncTemplates>("Template Saved"); var template = ApplicationContext.Current.Services.FileService.GetTemplate(sender.Alias); if (template != null) { SaveToDisk((Template)template); } }
static void Template_AfterSave(global::umbraco.cms.businesslogic.template.Template sender, global::umbraco.cms.businesslogic.SaveEventArgs e) { if (!uSync.EventsPaused) { LogHelper.Info <uSync>("Template After Save"); SaveToDisk(ApplicationContext.Current.Services.FileService.GetTemplate(sender.Alias)); } }
void DocumentBeforeSave(global::umbraco.cms.businesslogic.web.Document sender, global::umbraco.cms.businesslogic.SaveEventArgs e) { if (UmbracoSettings.ImageAutoFillImageProperties != null) { var property = sender.GenericProperties.FirstOrDefault(x => x.PropertyType.DataTypeDefinition.DataType.Id == new Guid(Constants.PropertyEditors.UploadField)); if (property == null) { return; } FillProperties(sender, property); } }