Removing the "Create" option from the Context Menu in Umbraco.

Many times I've found myself becoming irritated that the "Create" option in the Umbraco UI context menu, is there even when there aren't any allowed child nodes under that node. When I click it, all I get is an empty dialog. Here's how you get rid of it.

Umbraco EventHandler: OnContentTreeBeforeNodeRender

Please, do note, this solution isn't for everyone. There might be a special case when you'd want that empty dialog. I don't know when or why, but it might happen. Also, you might ask why I keep putting code samples in images. It's because I want you to actually read what you are putting into your own source, and not just copy and paste. Copy and paste isn't a very good practice you know.

blog comments powered by Disqus