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

markhalliwell’s picture

Status: Active » Postponed (maintainer needs more info)

Can you send screenshots of the menu configuration and view's contextual filter configuration, this isn't a lot of info to go off of.

markwittens’s picture

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

markwittens’s picture

Status: Postponed (maintainer needs more info) » Active
markhalliwell’s picture

Title: Token not working » Tokens not working
Assigned: Unassigned » markhalliwell

I 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's original_path (this change was introduced in the 2.x branch). I'll have to refactor this section of code.

markhalliwell’s picture

Status: Active » Fixed

Fixed in commit f8d375e.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.