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

Boogle’s picture

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

marcelomg’s picture

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.

AlonGoldberg’s picture

Thank you Boogle - your comment helped me as well.

selvamkf’s picture

Your point helped me as well :)

iburge’s picture

Funny how the simplest of things can waste so much time ! had the same problem

iangonza’s picture

Trying to default to all items seemed kind of unintuitive to me, but thanks for your finding! Solved my problem.

Reis Quarteu’s picture

I was having the same problem. Thank you very much for your kind help! :)

prakashsingh’s picture

Proven useful to me also..

thanks a many

scott.browne’s picture

Saved me a ton of time. I would have never guessed that.

r0ber’s picture

Hi guys, you always can build your custom filter handler.

More explanations here :
https://www.drupal.org/node/1239866

Greetings !