LocalizationService.SavedDictionaryItem event does not fire
Is it a bug in Umbraco 7 ? I can catch media service event when I click save button. But does not work for localization service ? Is there any way to catch event when user save or delete dictionary item.
Thank you so much
public class RegisterEvents : ApplicationEventHandler { public RegisterEvents() { MediaService.Saved += new TypedEventHandler>(MediaServiceSaved); LocalizationService.SavedDictionaryItem += new TypedEventHandler>(DictionaryServiceSaved); } void MediaServiceSaved(IMediaService sender, SaveEventArgs e) { foreach (var mediaItem in e.SavedEntities) { // Do whatever you want with each entity } } void DictionaryServiceSaved(ILocalizationService sender, SaveEventArgs e) { foreach (var dicItem in e.SavedEntities) { // Do whatever you want with each entity } } }
Hi Alex. I register by creating cs class inherit ApplicationEventHandler. The problem is if you see in my code snippet MediaService work but LocalizationService does not work. I dont know why. I also try to put event register in ApplicationStarted instead of default contructor but does not help
LocalizationService.SavedDictionaryItem event does not fire
Is it a bug in Umbraco 7 ? I can catch media service event when I click save button. But does not work for localization service ? Is there any way to catch event when user save or delete dictionary item.
Thank you so much
Hi Son,
Where are you registering your events ?
Did you read https://our.umbraco.org/Documentation/Reference/Events-v6/Application-Startup ?
Thanks
Hi Alex. I register by creating cs class inherit ApplicationEventHandler. The problem is if you see in my code snippet MediaService work but LocalizationService does not work. I dont know why. I also try to put event register in ApplicationStarted instead of default contructor but does not help
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
Has anybody the same problem with me. Some event of umbraco 7 does not work
I have the same problem in 7.2.6
please vote this issues http://issues.umbraco.org/issue/U4-4137
is working on a reply...