Active
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc1
Component:
exposed filters
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2011 at 11:53 UTC
Updated:
31 Mar 2013 at 17:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerSee this screenshot. This works fine as long it's not optional.
Comment #2
liquidcms commentedDereine's solution won't work if you also want to limit list to selected items. I agree, it would be nice to have an addon module or built in to views to be able to select default filter settings.
the only way that i know so far to do it is form_alter code.
Comment #3
dimon00 commentedSame problem here.
I had to restrict the item list.
My solution was to split my category in two. Not elegant but it is working...
A "default value for the exposed filter" would be the best solution.
Comment #4
liquidcms commentedi have a few cases where a simple "select default value" would be great solution; but also another where i want the default to be time based (i.e. pick current month, etc) - this would be trickier as default would need to support php code (like cck does)
Comment #5
rtdean93 commentedYES - I need help here too... and boy does my brain hurt.
Situation:
I have one Vocabulary of products organized hierarchically.
I need an exposed select filter which is limited to a parent/child relationship
Since I am selecting terms then limiting the select box to those terms, the select filter is automatically highlighting the last term in the list (which gives an appearance that that is what the filtered term is).
SEE ATTACHED SCREENSHOT
I would love for the default to be ANY (as it is if the "Limit to selected items" is not selected)
Can I do this via a form alter? Everybit of help is appreciated.
Comment #6
jessicakoh commented@rtdean93 Did you solve this?