User defined search - is exposed views the answer?

mattmm's picture

When wanting an anonymous user to define search paramaters, is views exposed filters the answer? Is there a module that works with views to handle this task?

Think of a real estate search box - the user selects the price, how many bedrooms, and how many bathrooms. I've got this working with views2/d6 out of the box when there is a default defined list already made (via the fields views has you select). Then the exposed filters shows above the listing, but what if I don't want to define a pre populated listing? I want the list to be created after the user defines it, versus them seeing the entire listing and then modifying it.

Pretty sure I could just theme the view and "hide" the default list, but it's still processing in the background. Any advice is appreciated!

Login to post comments

Still plugging away at what

mattmm's picture
mattmm - Thu, 2009-02-19 02:38

Still plugging away at what seems to be the only answer - embedding exposed views fields directly from PHP. Reading up in this post, http://www.angrydonuts.com/displaying_views_exposed_filters, it seems people are still trying to figure it out. I've used the method/code from, http://www.computerminds.co.uk/displaying-exposed-filter-form-views-drup... and am receiving the following error on my site. Using D 6.9 and Views 6.x-2.3:

warning: preg_match() expects parameter 2 to be string, array given in /home/megare/public_html/includes/bootstrap.inc on line 761.

matthewm.org


What happens if you make the

dwees's picture
dwees - Thu, 2009-02-19 03:47

What happens if you make the filters non-optional? Do things still show up?

Dave


Still no go... matthewm.org

mattmm's picture
mattmm - Thu, 2009-02-19 14:57

Still no go...

matthewm.org


Update: Had some errors in

mattmm's picture
mattmm - Fri, 2009-02-20 03:13

Update: Had some errors in the view. Re-created, left exposed fields in the default display, no additional display or fields, embedded via php block - worked great.

matthewm.org


Some days ago i know this

vidddd's picture
vidddd - Tue, 2009-02-24 16:09

Some days ago i know this module
http://drupal.org/project/faceted_search

but i dont try yet.