Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I was trying to insert a custom context menu in Umbraco 7.
Is it possible to use custom Context Menu.? How.?
Any help is appreciated
Are you looking to add item to existing Context Menu?
I got the solution : )
I created a class RegisterEvents as below
I’m a little bit late to the party since you’ve already solved the issue. Umbraco calls these “Tree Actions”, or just IAction, figured I’ll share a link to the documentation as well: https://our.umbraco.com/Documentation/Extending/Section-Trees/tree-actions-v8
Turns out that the docs actually should be extended to include an example on how to add a item “on the fly” like you needed to.
Edit: Turns out this was already there: https://our.umbraco.com/Documentation/Extending/Section-Trees/trees-v7#menurendering
I’ve a similar thing going on here: https://github.com/enkelmedia/Umbraco-MultiMover/blob/master/MultiMover/Startup/AddNodeMoverActionEventHandler.cs
One question, the last row in your code umbraco.library.RefreshContent(), are you sure that’s needed? What does it do?
Thank you Markus for sharing these details here : )
I've gone through this documentation and got the solution
Just wanted to know, what does umbraco.library.RefreshContent() do? Is it really needed?
No, it's not
I have to pick root nodes as part of my functionality that's why i used it and
Forget to remove here.!
Thanks Markus :)
Is there a way to add/remove/edit this list in a event ?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted