Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
29 Aug 2006 at 19:11 UTC
Updated:
29 Nov 2006 at 01:16 UTC
I'm developing a catalog system, and so far, Views is working beautifully. However, it's a pain that every node entry in the catalog is automatically displayed on every view. I'd like to know if there's a way to get views to not display every node, just the filters. Then, once the user enters filter terms, the nodes are displayed.
Thanks!
Comments
Comment #1
solidarity commentedCORRECTION: I'm using Views for 4.7, not cvs as listed in my issue.
Comment #2
merlinofchaos commentedI assume you're using the exposed filters?
Set the exposed filters to filter to something that won't provide any results, and play with the defaults checkbox in the exposed filters section. You should be able to get views to default to nothing, I think. I'm not sure; it's not a use case I'd thought of.
Comment #3
merlinofchaos commentedNo response in awhile; marking this fixed.
Though to chew on, another possibility is to put some code in the php_args section that could force the view to use an arg that will produce no results if there are no filters being used. That's more difficult, though, than simply playing with the exposed filter defaults.
A third possibility is to use some trick like http://www.angrydonuts.com/displaying_views_exposed_filters to put your initial filter somewhere else.
Comment #4
(not verified) commented