Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Brännmark 228 posts 280 karma points
    Jul 02, 2010 @ 10:44
    Anders Brännmark
    0

    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?

  • Richard Soeteman 4052 posts 12925 karma points MVP 2x
    Jul 02, 2010 @ 11:50
    Richard Soeteman
    0

    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

  • Anders Brännmark 228 posts 280 karma points
    Jul 02, 2010 @ 11:52
    Anders Brännmark
    0

    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.......

     

Please Sign in or register to post replies

Write your reply to:

Draft