Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I tried using the token [menu-link:node:nid] as an argument but this doesn't seem to work. The view always renders as if no argument was passed.
Comments
Comment #1
markhalliwellCan you send screenshots of the menu configuration and view's contextual filter configuration, this isn't a lot of info to go off of.
Comment #2
markwittens CreditAttribution: markwittens commentedI already uninstalled and deleted the module so that won't be possible. It is a very simple case however: a view with as argument the curent nid, if tested in the view it works. This view is attached to the menuitem, the menuitem gets the token as an argument. If the token is used it doesn't work, if the nid of the node is used it works.
Comment #3
markwittens CreditAttribution: markwittens commentedComment #4
markhalliwellI see the problem in the code (http://drupalcode.org/project/menu_views.git/blob/refs/heads/7.x-2.x:/me...). It's using the
link_path
of the menu item instead of the menu view'soriginal_path
(this change was introduced in the 2.x branch). I'll have to refactor this section of code.Comment #5
markhalliwellFixed in commit f8d375e.