Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Boogle on
Hello everyone,
I’ve created a view and the exposed filters is giving me some trouble.
The view is a selection of thumbnails of breeds of dogs and I have a filter set to “select by breed”. The problem is that the first dog in the selection is Akita and because I haven’t got any Akita’s on the site it’s not displaying anything when I first go to that page. It’s only when I set the filter to “any” that it displays everything.
So, is there any way to have the default value of the exposed filter set to “Any” so that it displays everything when the page is first accessed?
Many thanks
Comments
Fixed.
Never mind people.
Still new to Drupal so I imagine some of the questions I ask are quite basic.
Anyway, all I did was this. After selecting expose in the filters settings I didn’t select anything from the fields allowed values list. By not selecting anything it just defaulted to “any” when viewing the view from the front end.
It was the video on Views by Lullabot that stumped me because they said to select everything in the list. Selecting everything will default to the first selection in the list when first viewed at the front end.
Thanks
You're right
I got stuck with the same problem you have. I also watched the lullabot video and selected all the options.
Thanks to you i got it working now by deselecting the allowed values.
thanks a lot.
Thank you Boogle - your
Thank you Boogle - your comment helped me as well.
Thanks !
Your point helped me as well :)
Same
Funny how the simplest of things can waste so much time ! had the same problem
Great!
Trying to default to all items seemed kind of unintuitive to me, but thanks for your finding! Solved my problem.
Thanks
I was having the same problem. Thank you very much for your kind help! :)
Proven useful to me
Proven useful to me also..
thanks a many
Saved me a ton of time. I
Saved me a ton of time. I would have never guessed that.
Create your custom filter handler
Hi guys, you always can build your custom filter handler.
More explanations here :
https://www.drupal.org/node/1239866
Greetings !