Hello ppl! First of I'd like to thank you for the awesome module.
View's developpers are currently working hard on creating Hybrid exposed filters (and are hopefully about to succeed :D)
This is the issue link (with the correct patch to install) Hybrid Exposed Filters
This new type of exposed filter is used to create complex exposed filter form allowing advanced numbers filtering (between 1 and 100, 101 and more, etc.)
However, this generates an error from Better Exposed Filters:
Notice: Undefined index: filter-field_my_name_value in better_exposed_filters_exposed_form_plugin->exposed_form_alter() (line 467 of sites/all/modules/better_exposed_filters/better_exposed_filters_exposed_form_plugin.inc).
(these are the lines)
466 // Form element is designated by the element ID which is user-configurable
467 $field_id = $form['#info']["filter-$label"]['value'];
So basically for now, I can't create a view using regular exposed filters (with better exposed filter activated to generate the checkboxes) and hybrid exposed filters.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | bef_hybrid_filters_support-1431810-11.patch | 778 bytes | imclean |
| #8 | bef_hybrid_filters_support-1431810-8.patch | 768 bytes | KLicheR |
| #6 | bef_hybrid_filters_support-1431810-6.patch | 768 bytes | KLicheR |
| #5 | bef_hybrid_filters_support-1431810-5.patch | 768 bytes | KLicheR |
| #3 | bef_hybrid_filters_support-1431810-3.patch | 845 bytes | imclean |
Comments
Comment #1
Marc-Antoine commentedHere's my modest patch, it prevents better exposed filters from completing it's hook if the current filter is a hybrid exposed filter.
Comment #2
imclean commentedHere's a different approach which allows BEF to support hybrid filters. This uses the hybrid filter identifier, if set, instead of the field label.
Latest Hybrid Filters patch: http://drupal.org/node/731662#comment-5583492
Comment #3
imclean commentedRemoved trailing whitespace.
Comment #4
imclean commentedTo be honest, I'm not sure how useful the approach in #3 would be. Hybrid filters can already display radio and select elements and unless multiple selects will be possible there's not a lot of point in BEF integration.
Comment #5
KLicheR commentedPatch adapted to the latest stable release.
Comment #6
KLicheR commentedPatch adapted to the latest stable release.
Comment #8
KLicheR commentedPatch adapted to the latest stable release.
It seem that this patch is also important: http://drupal.org/node/1512874#comment-6555104
Comment #9
imclean commentedPatches should be against the dev version.
Hybrid filters has long since been committed to Views so this patch is essential.
Comment #10
theodorosploumisPatch from #8 has not adapted to any latest stable (7.x-3.0-beta3 / 2012-Oct-03) or dev version (7.x-3.0-dev / 2013-Feb-25) and it is needed for views ASAP!
By the way, it works fine with Views grouped exposed filters.
Comment #11
imclean commentedPatch against latest git.
Comment #12
kalabroComment #13
kalabroRe-roll latest patch
Comment #14
mikeker commentedI appreciate your work on this issue, but BEF already supports Grouped (or Hybrid) filters. As long as the display element is set to "select" instead of "radio".
Comment #15
Exploratus commentedThis patch helped me when using grouped filters in a view. I was getting lots of errors on grouped filters, and this made the errors go away.
Comment #16
mikeker commented@Exploratus, please don't reactive issues unless you have specific information to add. What errors were you getting? What is your view configuration (copy/paste an export of the view in question).
Thanks.
Comment #16.0
mikeker commentedMy link was invisible
Comment #17
amaisano commented#14 resolved the PHP errors I was getting. Very small but critical detail:
Thanks.
However, when I set BEF for that filter to be "Checkboxes/Radio" it refuses to use checkboxes. Even though the filter is set for "Allow Multiple," BEF is rendering Radio Buttons.