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 everyone!
I have to events for members BeforeSave and BeforeDelete.
BeforeSave works fine and triggered in appropriate situations.
I have database dependencies for my members, so before delete member I should clear some data first, but BeforeDelete event doesn't triggered at all.
Can anybody help me with it?
I have the sam problem.
Publihs event is forking, but before delete no?
Can someone help with this?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Member.BeforeDelete doesn't work
Hi everyone!
I have to events for members BeforeSave and BeforeDelete.
BeforeSave works fine and triggered in appropriate situations.
I have database dependencies for my members, so before delete member I should clear some data first, but BeforeDelete event doesn't triggered at all.
Can anybody help me with it?
I have the sam problem.
Publihs event is forking, but before delete no?
ublic class DeleteMemberHandler : IApplicationEventHandler { public void OnApplicationStarted(UmbracoApplicationBase httpApplicationBase, Umbraco.Core.ApplicationContext applicationContext) { ContentService.Publishing += CustomPublishingEventHandler; Member.BeforeDelete += BeforeDeleteHandler; } public void OnApplicationStarting(UmbracoApplicationBase httpApplicationBase, Umbraco.Core.ApplicationContext applicationContext) { } public void OnApplicationInitialized(UmbracoApplicationBase httpApplicationBase, Umbraco.Core.ApplicationContext applicationContext) { } private void CustomPublishingEventHandler(IPublishingStrategy sender, Umbraco.Core.Events.PublishEventArgs<Umbraco.Core.Models.IContent> e) { e.Cancel = true; } private void BeforeDeleteHandler(Member sender, DeleteEventArgs e) { e.Cancel = true; } }Can someone help with this?
is working on a reply...