Is there a way to set drop down exposed filter to default to Url. For example, taxonomy term in the Url sets the taxonomy term in exposed filter ?

Thx,

Comments

sbydrupal’s picture

Additional comment: Amazon, Craigslist, ... almost all sites use this feature when you click on different categories, exposed filter automatically sets to that category.

Thanks for considering this important feature.

fossie’s picture

It's possible, but at the moment, not without coding a bit (someone correct me if I'm wrong). You'll have to create a module, but it shouldn't be long.

Take a look here: http://drupal.org/node/360780

If you have any questions, maybe I can explain it in more detail, but first give the above link a try.

HTH,
Fossie

sbydrupal’s picture

Thx Fossie. I will check the link and ask if I can't get it right.

dagmar’s picture

Category: feature » support
Status: Active » Fixed

You can use Views Hacks module for "Additional comment: Amazon, Craigslist, ... almost all sites use this feature when you click on different categories, exposed filter automatically sets to that category."

Related to set automatically the value of the filter, if you don't use ajax in your view, you can put the ?filter_name=value in the url and the view will be automatically filtered. Or use the hook_form_alter as #360780: Views 2 Exposed Filter Default Value Changes with (Url) Argument explains.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

joachim’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Component: Miscellaneous » Code
Category: support » bug
Status: Closed (fixed) » Active

I can't see anything in Views Hacks that covers this.

And in 7.x-3.x, we still have two systems for the user to filter a view's results -- contextual filters and exposed filters -- and as far as I can tell, they don't talk to each other. Though I suspect the amount of rejigging this would need punts this off to a future Views 4.x...

dawehner’s picture

Status: Active » Closed (duplicate)

Here is another issue on which there is actually some work #357082: Pull filter value from an argument?