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 was wondering if it is possible to allow user to add to dropbox more than just one element at once.
I've been looking for an option in API.txt but I found nothing.
I'm using the flatlist module 6.x-3.x-dev on drupal 6.10.
TIA, your module is great!
Comment | File | Size | Author |
---|---|---|---|
#23 | hierarchical_select.module.patch | 2.54 KB | anil614sagar |
#21 | hierarchical_select.js_.patch | 1.25 KB | anil614sagar |
#21 | hierarchical_select.module.patch | 3.55 KB | anil614sagar |
#21 | hs_taxonomy.module.patch | 2.35 KB | anil614sagar |
Comments
Comment #1
Wim Leers- How would you want to do this?
- Why would you want to do this?
Comment #2
upupax CreditAttribution: upupax commentedLike this video http://www.mediafire.com/download.php?yzzybqtzyjm .
It's a form I'm trying to develop to filter contacts and send them a message.
The first multiselect is a taxonomy form and the second is a multiselect list of nodes (this is a little list, but you have to imagine to have a big list of people).
Since this feature is really close to what dropbox actually does (and my code is full of bugs that I didn't show in the video) I thought to use the hs functionality, but I noticed there is no support for multiple selection in dropbox module.
I wonder if it could be set some how.
Comment #3
amitaibu* Why? - I'm also looking for the feature. My use case is that I need to several (child) terms, and I don't want to click on the 'Add' many times.
* How? - It could be a 'normal' multiple select
or selection with checkboxes (when I addedEDIT: I had better_select module switched on, so I saw the checkboxes.'#multiple' => TRUE
in _hierarchical_select_process_render_hs_selects() I saw it already added those checkboxes).Comment #4
z.stolar CreditAttribution: z.stolar commentedsubscribing
Comment #5
AmitV-2 CreditAttribution: AmitV-2 commentedsubscribing
Comment #6
Wim LeersOkay, I've thought about this before too.
1) *If* this makes it in, it'll be in the form of #type = select and #multiple = TRUE, *not* in the form of #type = checkboxes
2) This is a feature that will *only* be available when the dropbox is enabled.
3) It's been a while since I've been deep into HS, so I'll have to think more deeply about the possible implications of adding this.
But it'll get added. If anybody's willing to write the necessary patch (or start working on it, because it'll have to be configurable in the UI as well), I'll gladly accept your work :)
Comment #7
Wim LeersNot much interest + busy + I really need to get version 3 final out = this will be for a 3.x point release.
Comment #8
robby.smith CreditAttribution: robby.smith commentedsubscribing
Comment #9
Bilmar CreditAttribution: Bilmar commentedsubscribing
Comment #10
no2x CreditAttribution: no2x commentedHi,
I also think, this would be an interesting feature.
@Wim Leers: Maybe there could be 2 aspects here. One is the option to add multiple items to the dropbox and the other one is the checkbox thing. I like checkboxes, because they are very user friendly. If you use HS in an exposed filter in a view, it might not be clear to every user, that he has to select items and has to click onto the Add button each time. Afterwards he has also to click the Search/Apply/whatever Button of the exposed filter.
So in my optinion it would be create to have the dropbow on the one hand and a checkbox type on the other side. What do you think?
Comment #11
Wim Leers@no2x: Adding support for checkboxes to HS would make HS' code even more complex. Plus it would no longer live up to its name. Plus it'd become a UI monstrosity.
Checkboxes are not *always* good.
I'm sorry, that won't happen for the foreseeable future. Thanks for your understanding.
Comment #12
skitten CreditAttribution: skitten commentedDid you have thoughts on how you would implement it? I'm getting persistent requests for being able to control or shift click to select and add multiple items on my site.
Comment #13
Renee S CreditAttribution: Renee S commentedsubscribing. Control-click FTW!
Comment #14
goldlilys CreditAttribution: goldlilys commentedSubscribing
Comment #15
Wim LeersThis won't happen in HS 3, unless somebody rolls the patch. Sorry.
Comment #16
ordually CreditAttribution: ordually commentedSubscribing
Comment #17
Wim LeersTagging for HS4. Included in the HS4 roadmap: http://drupal.org/node/1052670.
Comment #18
klonosThis will happen in the 7.x branch.
Comment #19
Owen Barton CreditAttribution: Owen Barton commentedSubscribe
Comment #20
Jerenus CreditAttribution: Jerenus commentedSubscribe
Comment #21
anil614sagar CreditAttribution: anil614sagar commentedDear Wim Leers & Subscribers,
Please find the patch files for above issue. I have tested patch files and working fine with latest stable version of HS.
Comments & suggestions are welcome :-)
Cheers,
Anil Sagar,
AZRI SOLUTIONS,
www.azrisolutions.com
Comment #22
Jerenus CreditAttribution: Jerenus commentedComment #23
anil614sagar CreditAttribution: anil614sagar commentedPatch Updated to fix parents getting lost while updating terms with parents.
Comment #25
eminencehealthcare CreditAttribution: eminencehealthcare commentedThis patch works good with the checkboxes but it makes it not possible to add a new term.