I've already posted this in http://drupal.org/node/1618444 but that issue has been marked as fixed and the issue explained below deviates a bit from the original issue posted there.
I set up a new sandbox just to play around with this module and found out that it does not hide dependent exposed filters if the controlling filter is a field. For example, say you have a content type called "Vegetable" and it has fields called, "plant type" and "flower color." You make these two fields exposed filters in the view, but you only want the "flower color" filter to show if someone selects certain value(s) in the "plant type" filter. For whatever reason, both filters will still show.
So far, I have figured out that the dependent filters will work beautifully if you make the controlling filter anything but a field from a content type. I noted that this also applies to taxonomy term reference fields; if they are set as controlling filters, the dependent filters will not be hidden, but you can use Content: Has taxonomy term as a controlling filter instead.
The module is really, really,really handy, but there's something weird going on with the way it interacts with fields... Maybe this module was never meant to work at this granular a level; maybe is this type of behavior by design?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | dependent_filter_test-7.x-1.0.zip | 3.4 KB | Geijutsuka |
Comments
Comment #1
joachim commentedCould you upload give me a zipped-up Feature that shows the problem, using core Drupal entities please?
Comment #2
Geijutsuka commentedSorry for the delayed response (I don't seem to be receiving email updates from d.o). I'll try my best to get this to you as soon as possible.
Comment #3
Geijutsuka commentedI've attached a Feature of my sandbox. Please let me know if I forgot to include a component in it that you need (this is my first time using Features). The content type only uses the Drupal core List(text) field type.
Comment #4
joachim commentedThat's perfect, thanks!
The patch over at #1584200: Breaks when renaming "Filter identifier" seems to fix the problem. And being on the dev version too... there's a fix from months ago that I should have made a release for. Once the new patch gets in I'll definitely make a new release :)
Comment #5
Geijutsuka commentedAwesome! Thanks, joachim.
This module is just what the doc order for my current project (and no doubt future ones)—thanks for all your hard work.