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 422 posts 1580 karma points MVP 3x 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 422 posts 1580 karma points MVP 3x c-trib
    Nov 12, 2014 @ 00:17
    Nathan Woulfe
    100

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

  • 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.

Please Sign in or register to post replies