Last updated March 7, 2009. Created by electricmonk on February 17, 2009.
Edited by setfree, udioron. Log in to edit this page.

Nodereference Views Select

This module provides a widget for Node Reference which displays the node teasers instead of a select box, and allows choosing the referenced nodes using a Modal panel. The list is optionally sortable, depending on JQuery UI Sortables. The modal supports pagination, exposed filters and exposed sorting, all using AJAX.

In order to use:

  1. Install the module
  2. Create a View with the "Sortable teaser list for Node Reference" style plugin for the page display.
  3. Configure any filters you would like for the view. Exposed filters are rendered inside the modal panel. Currently only drop-down filters are supported, attempting to use any other filter might result in unexpected behavior (or just won't do anything).
  4. To configure sorting within the modal, add fields to the view and set them as sortable. The module will use the Table Header in order to generate the sort header.
  5. Configure your Node Reference field, select the "Teaser List + Modal Panel using Views" widget. Select the view you have previously created in the "Advanced - Nodes that can be referenced (View)" field, save the form, then visit this page again to set field settings such as number of teasers per page in the widget (not modal) or whether the widget teaser list is sortable.

The module depends on Views and CCK (naturally) and on JQuery UI for the sorting behavior.

Module development sponsored by ewave

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

"Sortable teaser list for Node Reference" style plugin is not available for me.

I'm using Drupal 6
with Views, CCK, node reference views select, jquery UI

Am I maybe doing something wrong?

This page is only relevant to D5. The D6 version is a complete rewrite and is much simpler to use.

Ah I was already guessing this was the case. I got it working but there's one detail that still bothers me:

After making a selection of nodes from the popup these nodes aren't sortable yet. They are only sortable after clicking save or preview. Is this intended or is something going wrong?

Thanks in advance for your help.

Probably a bug. Please open an issue in the module's issue queue.

I am using D6, I want Pagination in modal panel . Plz help how to do with using node reference views select module or anyother solution

I spent 10 minutes I shouldn't have done trying to figure out how to get started - so for anyone else, just change the widget type on your node reference field and away you go.

SaaS technologist. twitter.com/zuluecho23