I have an issue that sometimes occurs not just on one Umbraco site but I have seen it on many and some of my customers have experienced it as well. When you right click on a node then select delete it actually tries to delete a different node or even a parent node. It doesn't happen all the time but reloading the nodes or coming out of the content section then going back in usually resolves it. Does anyone else experience this issue and is the a fix for it? Hopefully it will be fixed in the new jquery tree in Umbraco 4.1.
Another question which is related to the above one is can I make it so that a parent folder cannot be deleted but child folders can be? For example I have a News section that users add news articles to, I want the user to be able to delete News articles but not the whole News section (which can easily happen with the bug mentioned above). I know I can change the permissions on the News Section so that the user cannot delete it but this seems to propagate down to the News Articles, I can of course modify each individual News Article so that they can delete it but I don't want to have to do this everytime they add a new article. Anyone got any suggestions?
maybe you could implement an ActionHandler for this. If you would bind to the Document.BeforeDelete event you could programmaticaly check if this node can not be deleted and then do a e.Cancel in the event Method like this:
Thank you for this, looks like it may do what I want, the only question is what if I logged on as an admin want to delete the node? Would I have to remove the dll that stops the deletion of the nodes?
Deleting wrong nodes and permissions
I have an issue that sometimes occurs not just on one Umbraco site but I have seen it on many and some of my customers have experienced it as well. When you right click on a node then select delete it actually tries to delete a different node or even a parent node. It doesn't happen all the time but reloading the nodes or coming out of the content section then going back in usually resolves it. Does anyone else experience this issue and is the a fix for it? Hopefully it will be fixed in the new jquery tree in Umbraco 4.1.
Another question which is related to the above one is can I make it so that a parent folder cannot be deleted but child folders can be? For example I have a News section that users add news articles to, I want the user to be able to delete News articles but not the whole News section (which can easily happen with the bug mentioned above). I know I can change the permissions on the News Section so that the user cannot delete it but this seems to propagate down to the News Articles, I can of course modify each individual News Article so that they can delete it but I don't want to have to do this everytime they add a new article. Anyone got any suggestions?
Hi,
maybe you could implement an ActionHandler for this. If you would bind to the Document.BeforeDelete event you could programmaticaly check if this node can not be deleted and then do a e.Cancel in the event Method like this:
Hope this helps
Toby
Hi Tobias,
Thank you for this, looks like it may do what I want, the only question is what if I logged on as an admin want to delete the node? Would I have to remove the dll that stops the deletion of the nodes?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.