When using a View to populate a node reference field there are strong use cases for being able to dynamically feed in arguments and also to be able to use Views exposed filters when selecting from these node lists.

I found a misplaced discussion on this. http://drupal.org/node/447578

Comments

R.J. Steinert’s picture

I've found arg() still works in 'Provide default argument options' using the PHP Code option. I can provide an argument at arg(3) in the /node/add/[content-type]/[argument] URLs but it gets trickier on the node edit page.

My two thoughts are either
1. to add the argument by rewriting URLs using a menu hook or
2. store that original argument as a node field and then write logic in the View's default argument to lookup the stored argument in the node.

I'm leaning towards option 2. Any suggestions would be awesome, especially those that might lead to a patch to make this easier. I would be glad to help out with the coding.

P.S. Views Filters on the Node reference field would still be awesome!!

nogre’s picture

subscribing

vverheijen’s picture

subscribing

rbenhase’s picture

Subscribing.

bricef’s picture

Subscribe

robotjox’s picture

subscribing

bnadem’s picture

Subscribing ...

landing’s picture

subscribe

** Edit : http://drupal.org/project/nodereference_explorer does the trick for me.