CCK Nodereference Widget: Node Browser
Heres what I would like to do:
First of all, I'm not sure if something like this exists, or if this is the best approach, so any suggestions are appreciated.
with CCK nodereference there are 2 widgets available for node selection.
1. A select Box
2. An Autocomplete textfield
Normally these 2 choices work great. However if there are hundreds or thousands (or even 50 or so available child nodes) I find that my content editors have the following problems:
1. the select box can get very long, and can become confusing for the person adding/editing content to choose the correct node.
2. with the autocomplete field you have to know the title (or partial title) of the node in order to reference it
It would be great if there was a Widget that launched a pop-up window (similar to the IMCE "insert image" browser).
This pop up window would list all the appropriate nodes (defined in the nodereference settings), and clicking on the title would then insert the nid to the nodereference field and close the window.
Even better would be the ability to sort/filter the listed nodes in the "browser" by taxonomy or other criteria (but not entirely necessary for my purpose, at least not right now)
does something like this exist. If not, would someone be interested in developing one?
I would be willing to contribute some funds towards a development effort, seems like it would be a useful widget to have.
Thanks!

Agreed about those 2
Agreed about those 2 problems you've identified, I've had them as well. Once a lot of options start coming up in those forms it can cause problems with jquery execution time and all sorts of stuff.
I'm working on extra features for node reference type stuff myself, but not an extra widget type - I love the idea though but maybe someone has some better suggestions than a pop up window?
seems like there should be a
seems like there should be a way to reuse the filter from the content management list.
yes, i want the same thing
i just opened up the nodereference_widget function - i'm about to start figuring out how it works, but if anyone wants to talk more about it - that's something i need to get going in the next two weeks...if i get anywhere with this, i'll post.
I think this widget should
I think this widget should work in the same way as the module finder at http://drupalmodules.com/module-finder. If this were shown in a jQuery popup after clicking a 'browse' link (or similar) you could quickly get to the required post.
ian
Fantasy Formula 1
Willing to help
I'd love to help develop a module to fill this need. Based on my needs, it would be important that user references also be supported. Would using a collapse-able fieldset would keep things organized and compact? Would supporting both node and user references mean that this should be its own module?
Disclaimer: for the time being my enthusiasm is necessarily greater than my usefulness. I haven't updated my knowledge on developing for Drupal 6 yet.
-- White Raven
Has anyone done anything with this?
Has anyone done anything with this?
I think may start on this. here are some thoughts.
1. a CCK field that has a hidden input field (for the Nid) and a "add node" link
2. Clicking the link would open a lightbox style window containing a table along the lines of admin/content/node with an "add" link (could/should we use views to do this?)
3. Clicking that link would close the window and populate the hidden input with the node id. (also show the text of title)
4. the table should be searchable along the lines of http://drupalmodules.com/module-finder
5. table should be sortable by title, type, date modified, etc
Am sure I'm missing some stuff.
Use views for the most flexibility
I don't know how feasible it is, but doing a lightbox-type popup with a defined view would be the most flexible way to do this. That way we could use the views UI to build out the listing with filters, sorting, paging, etc.
It would additionally be great to be able to allow multiple selections (check boxes) when the target node reference field allows multiple selections.