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.
Hi,
I tired using Views Hacks Views Filter Selective Drupal 7 its very close to what I need but needs 2 changes:
1. Taxonomy filters should be filtered when you first enter view. Now they are showing all options ignoring the view content.
2. "Any" option should be present when one of the filters is selected now it shows legal options but if you have more then 1 filter then you get "An illegal choice has been detected. Please contact the site administrator."
Are there any plans of fixing this ? So far I'm late with my project about 1 month. Things are getting uggly :)
Thanks
Comment | File | Size | Author |
---|---|---|---|
#1 | 1332980.views_hacks.vfs_.limit-filters-initially.patch | 8.3 KB | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commentedHere's a patch for the first point.
Note that it's cumulative on #1358152: skip processing of non-exposed filters.
> 2. "Any" option should be present when one of the filters is selected now it shows legal options but if you have more then 1 filter then you get "An illegal choice has been detected. Please contact the site administrator."
I can't reproduce that. Could you file a separate bug for it please?
Comment #2
emicoma CreditAttribution: emicoma commentedHi,
It works (with your 2 patch applied) , but 2 problems :
after the first run of the view, if "any" selected again : error "illegal choice"
and no way to make it works with better exposed enabled same time : error "illegal choice" again.
any idea ?
Comment #3
emicoma CreditAttribution: emicoma commentedhi,
I deleted those lines (around lines 127-135) :
and everything works fine now, with better exposed filters enabled too.
I have checkbox, select all link working without error "illegal choices" anymore.
thanks for your work.
Comment #4
briand44 CreditAttribution: briand44 commentedThe patch fixes the problem when first entering the view but I am having the same problem when choosing the "any option." I get the error "An illegal choice has been detected." I'm not using better exposed filters. Any ideas?
Comment #5
pradbone CreditAttribution: pradbone commentedI'm trying to get this working too.
it's OK with one exposed filter, but if you put 2, you get the above error after you have selected the first filter. then if you hit apply again, it works correctly.
Comment #6
pradbone CreditAttribution: pradbone commentedIs there no one that can figure this out?
Comment #7
infojunkieThis module has been deprecated in favour of https://drupal.org/project/views_selective_filters. Please test there and reopen if necessary.