I am exposing a filter or two for the user, but I want them to come to the page view and see no results at all before they choose a filter. At present the view shows masses of results. Is there a way to stop any showing by default? Thanks for any help....

Comments

ff1’s picture

I suppose it depends what sort of filter you are applying.

I just created and exposed a 'Node: type' filter on the default 'tracker' view. I then selected the option Operator Is not one of and selected all the options for Node type. I then checked Unlock operator and Limit list to selected items. This produced a view with no items initially, but did require the user to change the operator from Is not one of to Is one of before selecting the required node type.

It's not very elegant and a bit hackish, but if you can play with the initial filter settings, you may get a workable result.

edward.peters’s picture

Thanks for these ideas. A possible workaround, I suppose, but not a user-friendly solution. I am on the lookout for more possible solutions!

tisho-1’s picture

I'd love to find a user-friendly workaround as well. There should be one because this seems a really common use case of the exposed filters...

merlinofchaos’s picture

Category: support » feature
Status: Active » Postponed

Currently, there isn't a way to do this. I recognize the desire for this feature, but it is going to have to wait for the 'next' Views version.

tisho-1’s picture

Hi Merlin,

Thanks for your reply! I found a solution that you provided in another thread, to play with the default values of the filters in order to get no results by default; hopefully I can get such default values to work in my case.

Thanks again!

edward.peters’s picture

@tisho: can you share your solution, or give the reference to the thread? Thanks!

tisho-1’s picture

Hi Edward,

My bad for not posting where I found the partial solution: http://drupal.org/node/81365#comment-442219

Thanks!

ngstigator’s picture

This was a good solution what worked for me.

http://drupal.org/node/358546

dagmar’s picture

Version: 6.x-2.0-rc1 » 6.x-3.x-dev
Status: Postponed » Fixed

Finally implemented with the Exposed Form Plugin: Require Input, in views 3.

edward.peters’s picture

This is terrific news. Thanks for all the hard work on it.

Status: Fixed » Closed (fixed)

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