Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi all -
I'm very excited to see this module, and it functions quite nicely. Is there a way to create a Views filter that uses SHS and has multiple widgets? In other words, if I have a hierarchical taxonomy, and a given node might have more than one term from that taxonomy, is there a way to "Add another" filter?
Best -
Comment | File | Size | Author |
---|---|---|---|
#11 | 1909140-11.png | 20.29 KB | stBorchert |
#10 | shs-multiple_choice_in_an_exposed_views_filter-1909140-10.patch | 13.6 KB | paravibe |
#5 | shs-multiple_choice_in_an_exposed_views_filter-1909140-5.patch | 13.64 KB | paravibe |
Comments
Comment #1
stBorchertHi.
Sorry for responding so late.
Hm, initially I thought "hell no, that won't be possible" but now I'm not so sure about this anymore :) The main problem here is we need something similar to "Add new item" as known from unlimited fields.
Maybe this will not make it into the next version but if its technically possible, it will happen.
Comment #2
stBorchertI've committed a change to disable "Allow multiple selections" temporarily until I found a solution for this.
Comment #3
mpearrow CreditAttribution: mpearrow commentedMany thanks - I'm pretty green when it comes to Views, but I will also see if I can figure anything out.
Best -
Comment #4
stBorchertPostponed until a solution (or an idea of a solution) is found.
Comment #5
paravibe CreditAttribution: paravibe commentedHello,
I needed this functional, so I created a patch for current dev release.
I tested it with differents views and it worked perfect.
So please review and commit it.
Enjoy ;)
Comment #6
stBorchertApplied the patch and opened a node saved before: all elements are hidden now. Seems something went wrong while getting the correct data for the elements.Sorry, patch didn't apply correctly. Needs reroll.
Comment #7
paravibe CreditAttribution: paravibe commentedThis patch for this dev version http://drupalcode.org/project/shs.git/commit/5a2a874.
Can you give me more information about errors that you get?
Comment #8
stBorchertThe patch simply does not apply (especially the views handlers remain unmodified).
Comment #9
paravibe CreditAttribution: paravibe commentedVery strange, I have tested it.
Will you commit any code today?
I will create a new patch for newest dev release.
And it will be very helpfull if you enable automatic tests in you project settings.
Thanks.
Comment #10
paravibe CreditAttribution: paravibe commentedA new patch.
Just follow this steps:
git am shs-multiple_choice_in_an_exposed_views_filter-1909140-10.patch
git push origin 7.x-1.x
Don't forget to clear cache.
Please review.
Comment #11
stBorchertThanks for the patch, now everything works.
Committed to 7.x-1.x-dev.
The only issue I see here is if you have terms on one level with same name it could be hard to select the right one. But the current solution is better than no solution ;)
Screenshot for reference:
Comment #13
PlayfulWolf CreditAttribution: PlayfulWolf commentedI think the right solution should be single-choice select boxes