I have a page view set up for listing audio files in a table, and I would like to have an exposed filter which filters on a list of taxonomy terms in a drop down list. I can also set up a filter to display the page filtered for one of the terms, but I'd like to have the default load filtered for one term, but with the option to use the drop down to select one of the other terms. I haven't been able to figure out how to do that, so any help would be appreciated.

Comments

mnasgowitz’s picture

I have the same request. Actually I would like the added <all> option selected by default. It does seem that the first taxonomy term is selected when no tid argument is present.

In your case you might try to place the term you want by default at the top of your taxonomy list by adjusting it's weight.

For now I am looking at the possibility of adding code in my template.php file to pick the default. See http://drupal.org/node/99370 and http://drupal.org/node/364859

If someone has better advice on how to make this change please comment... I could use the help.

FIXED:
Seem the issue I had with setting <all> as the default was solved in http://drupal.org/node/369403

esmerel’s picture

Status: Active » Postponed

Suggestion with potential fix provided.

shane birley’s picture

Status: Postponed » Closed (fixed)

No activity for some time and I can confirm that the proposed "fix" at http://drupal.org/node/369403 does indeed work and is also documented in the handbook.