Active
Project:
Content Construction Kit (CCK)
Version:
6.x-3.x-dev
Component:
nodereference.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2010 at 00:10 UTC
Updated:
4 Oct 2011 at 03:06 UTC
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
Comment #1
R.J. Steinert commentedI'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!!
Comment #2
nogre commentedsubscribing
Comment #3
vverheijen commentedsubscribing
Comment #4
rbenhase commentedSubscribing.
Comment #5
bricef commentedSubscribe
Comment #6
robotjox commentedsubscribing
Comment #7
bnadem commentedSubscribing ...
Comment #8
landing commentedsubscribe
** Edit : http://drupal.org/project/nodereference_explorer does the trick for me.