The way you can customise the Menu options for a particular Tree is the handle the TreeControllerBase_MenuRendering event, check which tree is being rendered, and then add your new MenuItem, with a link to the view that implements your functionality.
Users tree
Hello everyone,
I'm new to Umbraco, and I need to modify the Users tree.
Actually, my tree look like this :
and I need to add the possibility to create a user from AD, like the Member node :
All the logic is ready, but I can' find how to add this menu.
Thanks all for your help
Hi letay
The way you can customise the Menu options for a particular Tree is the handle the TreeControllerBase_MenuRendering event, check which tree is being rendered, and then add your new MenuItem, with a link to the view that implements your functionality.
https://our.umbraco.com/documentation/extending/section-trees/trees-v7#menurendering
Can see an example here:
https://github.com/marcemarc/uSpinMeRightRound/blob/master/Solution/tooorangey.uSpinMeRightRound/App_Start/RegisterEvents.cs
Where I've added a 'Rotate' option to menu for Media items in the tree.
hope that's enough to get you started.
regards
Marc
Thank you very much Mark, that's all I need !
is working on a reply...