Need to make an eventhandler to stop delete of certain content. Tried to add an evenhandler to the BeforeMoveToTrash event. It works, it dosent move to trashbin but, how can one stop the rendering of the move to trash? It looks like it moves the item to trash but it acctually doesnt. How can one overide this rendering problem?
Do you mean, remove the delete button for certain content? If so You can use events to delete the delete option. I've written a few examples a while back. Modify example 3 to delete the option instead of adding 1.
Nope, the delete button should stay. I only want stop delete if certain criterias are met. But Umbraco still does the rendering that occurs after a succefully delete even thou I have set the e.cancel = true;. The document is not delete but to the user it looks like that.......
BeforeMoveToTrash
Need to make an eventhandler to stop delete of certain content. Tried to add an evenhandler to the BeforeMoveToTrash event. It works, it dosent move to trashbin but, how can one stop the rendering of the move to trash? It looks like it moves the item to trash but it acctually doesnt. How can one overide this rendering problem?
Do you mean, remove the delete button for certain content? If so You can use events to delete the delete option. I've written a few examples a while back. Modify example 3 to delete the option instead of adding 1.
Hope this helps you,
Richard
Nope, the delete button should stay. I only want stop delete if certain criterias are met. But Umbraco still does the rendering that occurs after a succefully delete even thou I have set the e.cancel = true;. The document is not delete but to the user it looks like that.......
is working on a reply...