If you want to reference content types in your global settings of your administration settings, the view doesn't get filtered, i. e. all items are displayed. The reason therefore is that a default view is exposed via the hook nodereference_explorer_views_default_views(). The filters for this view are specified in the widget settings ( "Content types that can be referenced"). The question is how to feed the hook with the widget settings?

Comments

Anonymous’s picture

you wouldn't do this in the hook. the right place to do this is after the view has been loaded but before the display has been executed, you can add filters to the view. no specific directions for you yet, though... but that's the way it will need to work.

gnindl’s picture

Version: 6.x-1.1-beta1 » 6.x-1.1-beta2

The default view is filtered in the constructor of the nodereference_explorer.views.class.inc. Inital display is filtered whereas applying exposed filters results in an error (illegal choice).

gnindl’s picture

Version: 6.x-1.1-beta2 » 6.x-1.x-dev
Priority: Critical » Minor
Status: Active » Postponed

Users are encourage to take the advantages of Views. The default view is just a starting point

gnindl’s picture

Status: Postponed » Fixed

This issue has partly been solved, nethertheless a new issue arises...

http://drupal.org/node/533560

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

fonant’s picture

Just to be clear, to make your own view for the nodereference_explorer popup:

  1. Clone the default nodereference_explorer view.
  2. Modify it to suit your needs (e.g. changing the content type filter, display, etc.).
  3. Save this new view, and select this view in the "Content types that can be referenced" option for the field.

Easy, and powerful, when you know how!