Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I am not sure if this request should be made here or chosen module
chosen as renderer for Simple hierarchical select will be great
feel free to move this to chosen if this doesn't belong here.
Comment | File | Size | Author |
---|---|---|---|
#8 | 1904480-8.1.png | 15.14 KB | stBorchert |
#6 | shs_chosen_field.PNG | 2.93 KB | kaizerking |
#6 | shs_chosen _conf.PNG | 10.14 KB | kaizerking |
#5 | beutifull_shs_search.PNG | 8.14 KB | kaizerking |
#3 | chosen_multivalue.PNG | 5.77 KB | kaizerking |
Comments
Comment #1
stBorchertUhm, how should this look like?
An autocomplete textfield ("chosen") for each level instead of the dropdowns?
Comment #2
stBorchertAh wait.
I'll test and try to apply chosen to the created elements. If this will work there will be an integration, otherwise it will be another "won't fix" :(.
Comment #3
kaizerking CreditAttribution: kaizerking commentedChosen works for select lists as well as autocomplete, also supports multiple values,Auto complete confuses people for hierarchical selection
drop down Select list support will be good
once we install 'chosen' the option is available for all autocomplete fields and select list fields.
you are the best judge how you want to implement this
Comment #4
stBorchertI will not reveal too much, but ... the integration with chosen is committed to 7.x-1.x-dev :)
After installing Chosen all dropdowns created by Simple hierarchical select (mathing the settings of Chosen) are transformed into Chosen-elements (dropdown with search field).
If you want to exclude the elements created by Simple hierarchical select you can use the selector
select:visible:not(.shs-select)
in the configuration of Chosen.You can test the new feature by using the code from git or wait some hours for the next development release.
Comment #5
kaizerking CreditAttribution: kaizerking commentedi git cloned it and tested
1.i don't see 'apply chosen to this field 'option i think users should be given an option everyone may not use chosen
2. only the top most is rendered as chosen element, but very beautiful isn't it? incidentally i have 178 values in that field a simple select wouldn't have helped
3. inline alignment disturbed i.e they are one below the other rater than side wise
pl see screen shot
Comment #6
kaizerking CreditAttribution: kaizerking commentedsorry! forgot to attach png screen shots
Comment #7
stBorchertAh, I forgot to mention that the integration is built on top of chosen-7.x-2.x.
Nevertheless an option "apply chosen to this field" would be a good idea.
Comment #8
stBorchertI've added the per-field option and extended the README.txt to make clear you'll need at least 7.x-2.x.
Did you test it with 7.x-1.x?
Inline alignment of the fields needs to be done on a per-theme base since I'm no fan of overriding CSS declarations for elements a module did not create itself ;).
Comment #9
kaizerking CreditAttribution: kaizerking commentedgreat ,It is working!! thanks
Comment #10
stBorchertI've extended the integration so you can decide (on a per-field base) to
* always render the elements with chosen (even if the field would not match configuration of chosen)
* never render the elements with chosen (even if the field would match configuration of chosen)
* let chosen decide whether to render it (default behavior)
As a bonus this works for Views exposed filters, too :)
Comment #11
kaizerking CreditAttribution: kaizerking commentedWow!!great.
Thank you for all of your efforts.
Comment #12
stBorchertBuilt into version 7.x-1.5.