Hope I haven't missed someone's answer - I've looked far and wide.

I have CCK and Views 2, Drupal 6.10. Right now, if I add a Node Reference field to a content type, it gives me the option to specify a VIEW (with filter) in order to determine which nodes are available to select as references at content creation. I want to filter by a date field on those nodes with a granularity of Month and Year. Everything works fine if I explicitly state a value for the filter in the View itself, or if I provide a relative range. But I'm then locked in to these values/ranges. I've also tried this with Arguments, but rather than getting locked in on the Views settings, the node reference field settings requires me to specify argument values on the content-type creation field (locking it in for that content type).

What I would love is to EXPOSE the filter for this view on the content creation form itself. If I set the filter to be exposed in VIEWS settings, no nodes show up (and neither does the filter) on content creation.

I realize that exposing the filter sort of defeats the purpose of having the filter there in the first place, with respect to access issues. But the problem I'm trying to solve is a workflow one: I do not want to have to adjust my View filter settings every month before instantiating a new node of the content type in question. And I do not want to present a list of 300 nodes to choose from when I know my user is only after nodes of a particular month.

i.e. I want to be able to choose the filter parameter for node reference select list right there on the content creation form.
:D
lol (shoot for the stars, right?) I'm not a coder here...

Any definitive answer would be much appreciated!

Comments

nevets’s picture

Do you always want to list nodes in the last N days, is that what you after?

yakker’s picture

I think I've jumped in the deep end without sufficient skill. So we've made some decisions over here to move away from a monthly organization to be more inline with how drupal is designed to display content (recent posts first, no necessary control by "issue"). Which I like. So I don't need to tackle the problem anymore.

But if it is ever an issue for anyone else, what I wanted was:

Rather than having a list of all nodes which I could "check" to create Node References, I wanted to expose a filter so that I could control which nodes show up on that list by Month (corresponding to a "nl_issue" field which each of those nodes has). So I'd be controlling by month: all nodes would be available, but they would only show up for selection by selecting their month (it would require AJAX)...

beauz’s picture

I'm needing to do this exact same thing.

If anyone can help that would be fantastic.

nrackleff’s picture

I think I'm after the same thing. I want to provide the user with the filter so they can enter dates and filter it to what they want as they are filling out the node entry form. In my case, I am using the node reference view to add some previously posted photos to a news item and I want the person creating the news item to be able to specify a date posted range to narrow the amount of items in the list. Thanks -Nancy

paganwinter’s picture

Same here...

I have a project content type with a list of user references.
I also have a Task content typw with a node reference to a Project content.
I need another list of user references for this task based on the users selected while creating referring Project node.

Easiest solution for me right now seems to tweak the Task creation form with JS.

cangeceiro’s picture

i too am in this boat if anyone finds a solution

I found the nodereference_explore module, but it is very buggy and appears to be unmaintained.

R.J. Steinert’s picture

Good tools for relating content is an absolute must if the Drupal framework is truly going to grow up. I put in a feature request for what you've described here.

http://drupal.org/node/762948

Be well,
R.J. Steinert III
RjSteinert.com

"Happiness is the process not the place."
-Diener

mudsurfer’s picture

I've got a similar need - I have a node type for "Audition Timeslots" maintained by admins, and I have users who are creating "Audition bookings" nodes types with node reference to the Audition timeslot.
Some of my audition timeslots are nominated as "sheet music OK" (when their is a pianist available).

So when creating Audition booking node, in the nodereference field I'm using a view of the available timeslots.
I would LOVE to be able to expose a filter on that view, so the user could (at user's option) narrow down the selection of available timeslots to only those supporting sheet music.

I'm exploring nodereference view select, and nodereference explorer - but these seems to be coming at the issue from a different direction.