User defined search - is exposed views the answer?

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by mattmm on February 6, 2009 at 5:40pm

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!

Categories: , ,

Comments

Still plugging away at what

Posted by mattmm on February 19, 2009 at 2:38am

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

Posted by dwees on February 19, 2009 at 3:47am

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

Dave

Still no go... matthewm.org

Posted by mattmm on February 19, 2009 at 2:57pm

Update: Had some errors in

Posted by mattmm on February 20, 2009 at 3:13am

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

Posted by vidddd on February 24, 2009 at 4:09pm

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

but i dont try yet.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /