Copied to clipboard

Flag this post as spam?

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


  • Nathan Woulfe 447 posts 1665 karma points MVP 5x hq c-trib
    Nov 06, 2014 @ 04:58
    Nathan Woulfe
    0

    Get node id from menu item

    I've added a new item to the context menu in the media section - how can I pass the id of the selected node to my plugin controller?

    I can use $routeParams in the controller, but that only works if the node is selected (ie displayed in the right-hand pane). I need to be able to right-click any node in the menu, and have the correct id passed.

  • Nathan Woulfe 447 posts 1665 karma points MVP 5x hq c-trib
    Nov 12, 2014 @ 00:17
    Nathan Woulfe
    100

    appState.getMenuState('currentNode').id does the job, for anyone else having the same issue.

Please Sign in or register to post replies

Write your reply to:

Draft