Hi,

Am posting this in case this topic is of any use to anyone. I tried various methods and modules to achieve this without success and spent a fair amount of time searching round the forums, so perservered with Views 2. I'm am not an expert but it once i figured it out, it takes 10 minutes to set up. Make sure you are using the latest version of Views 2.

Step 1
- Create the taxonomy lists and vocabularies

Step 2
1. Go to Views and add a view, view name and set view type as node

2. On the views display, set tags, title, pager, more link and decide on how your view results will be displayed. For my listing, i used a table style. Make sure the 'Exposed form in a block' is set to yes.

3. Go to fields and choose:
- Node Title and go through the options
- Node Teaser and go through the options
- Node Link and go through the options

4. Go back to the table style and click on the cogwheel

5. In order to make a nice vertical list, put all of the fields in the same column

6. Next, go to filters and choose the following:
- Node Type
- Taxonomy Term - select the vocabulary you want, selection type (i chose dropdown) and update. You then get options .... select the terms from the vocabulary, then expose the filter. More options to go through here plus choose a label title for your selection box.
- Repeat step #2 for the number of options you want.
- Search Search Terms - select show none and expose

7. Update and save

Step 3
- Now 'Add display' - Page and go to Path Settings/Path and give the view a URL path and save
- Now 'Add display' - Block and save

Step 4
- Go to blocks and enable the exposed form block you have created

If you want to see examples: www.csideholidays.com (for this demo) or www.the-adverts.com (slightly different parameters)

Comments

dserci’s picture

Hi,
compliments for your result.
This search box is exactly what I desperately need, unfortunately I'm a beginner and I tryed to follow you tutorial but I must admit I'm not able to do that and Views won.
My search box don't filter results.

What can be done??

designest’s picture

Hi ,i did all this steps but i can see them correctly in page display but not in block display.
it means i can't see anythings with block display!!!
what am i doing?

Thanks

designest’s picture

nobody knows?

aryashreep’s picture

Hi,

Here is the process to create "Dropdown search function for taxonomy terms"

In this article I describe you how to create a dropdown search function for taxonomy terms. It takes 10 minutes to set up. Make sure you are using the latest version of Views 3.

Step 1
- Create the taxonomy lists and vocabularies

Step 2
1. Go to Views and add a view, view name and set view type as node

2. On default views, in filter section add the Node type, Taxonomy: Vocabulary and Taxonomy: Term ID.

3. When you add Node type and Taxonomy: Vocabulary, you have to select the Node type (page, blog entry, article…etc) and for Taxonomy: Vocabulary you have to select your vocabulary which you want to display in dropdown. Then select the Taxonomy: Term ID and exposed as Dropdown.

Step 3
4. Go to fields and choose:
- Node Title and go through the options
- Node Body and go through the options

5. Add page to display and in Exposed form change to Exposed form in block no to yes.

6. Give the page path in views.

6. Save the view.

Step 4
- Go to blocks section and enable the exposed form block you have created.

Please follow the below link for more detail:
http://www.etechbuddy.com/blog/dropdown-search-function-taxonomy-terms.html

Yet Another User’s picture

@cside,

Thanks for wonderful Tutorial. I had tried many modules but couldn't find the Advanced Search the way I wanted it to be. After following your steps, I made it possible. Currently I have a two issues.

1) I want only Search box by default and a "More Options" button. When I click the More Options, these Filters should appear.
2) I want all the results on the next page. By default it shows the results on the same page.

Can anyone guide me how do I do that?

Thanks.

waqarit’s picture

this is wonderful tutorial by using view. But what is scenario if someone wants to create all this functionality in custom module. plzzz give some code...

CheesyFactory’s picture

Why i cant post code here?

Thanks,
The Cheesy Animation - 3D Corporate Presentation