Hello,

I'm looking for a good solution for a field based search (categories etc). I tried faceted search, finder, search config, jobsearch and many modules and I'm still trying to figure it out (and Im desperate!) :)

The effect I want to get is something like this: http://www.steerer.com/jobs-projekte/

I read somewhere that you can do almost anything with Views, so I'm after few Lynda tutorials and Views dcoumentations. Yet, I still need a guide. Can I actually make field based search with Views?

If yes, can anyone guide me how should I do it or point me to a good video tutorial? Thanks in advance!

Comments

seancorrales’s picture

There's two parts to this.

Under the filters, add the fields you want people to be able to search with. When you add them, you can click the option to "expose" the filters. Exposed fields will allow users to filter the view's results.

Once you expose a filter, you'll see an additional option to "Expose form in block". This will create a block of your exposed filters that can appear on a separate page.

Here's a tutorial for it based off Views for D6. It'll be close but you may have to look for some things that have moved around: http://treehouseagency.com/blog/steve-edwards/2010/01/03/creating-canned...

Darn’s picture

Thank you so much! I think I almost have it!

I made the fields using CCK > added the fields to the filters with option "expose form in block". It looks good in auto-preview:

http://darnath.webd.pl/ax.jpg

However it doesnt show on the page it should (/job). I'm trying to figure it out. Did I do something wrong?

Thanks in advance

EDIT: I've tried with "published (yes)" filter and "exposed form in block: yes" in advanced options but it didint help.

seancorrales’s picture

The "exposed form in block" option should place the exposed filters in a block. Go to the blocks admin page and place the views exposed filters block in a region.

If you leave "exposed form in block" set to no, it should display on the page "/job".

Darn’s picture

Views worked well for me with other tutorials (slideshows etc) but they don't now.

It doesn't show on block page or either on specific page under the /job directory. Trying all possible options atm.

Darn’s picture

Found a solution :)

The views didin't show on a page because of other modules. I've turned off several of them (including variables and internationalization) and it works fine now. I'll try to check later which module exactly was crashing my Views.

Darn’s picture

The module crashing the Views was Variable advanced. I turned it off and it works well, so to sum up:

I used Views for field based search:

1) Added fields "select list" to make a drop down search categories;
2) Added filters and fields in Views module;
3) Used "Grid Format" and "Show Fields", also I checked the option "display: inline" to show search results in one line;

And it works fine :)

Big thanks to droidenator!