I am tempted to use your excellent module for my site but I have a challenge, Multiple Selections.
I am looking to use the module to allow people to select an exact location e.g.

City >> Suburb >> Street >> Restaurant

but each member may like to select multiple restaurants.
Would it be better in your opinion to have multiple sets of the same selection boxes or can the module be modified to allow multiple selections?

Comments

wim leers’s picture

2 possible solutions:

1) use multiple content_taxonomy fields, this may not be really what you want
2) sponsor me to write a better way for doing this: http://drupal.org/node/176936#comment-606565 (see the attached image)

mouse77e’s picture

If dear Wim, i could afford to sponsor you i would but alas i am doing this on a shoestring! but that image does look just like what i would like!

what i am aiming at is to use this in my site http://afterthemouse.com to record work locations. some people worked in one place some in 20 places. i have listed most of them (thats arround 2000 locations possible) but i want to make it as easy as possible to edit profiles, both to add and delete locations.

wim leers’s picture

Title: Multiple Selections: Again... » True multiple select support
Version: 5.x-1.4 » 5.x-1.x-dev
Component: Miscellaneous » Code
Category: support » feature

I'm afraid you'll have to wait until somebody sponsors it or until I have time and finished higher priority work.

michelle’s picture

Just putting myself on the waiting list...

Michelle

mouse77e’s picture

Component: Code » Miscellaneous

I'm afraid you'll have to wait until somebody sponsors it or until I have time and finished higher priority work

Just out of interest what level of sponsorship might you be looking for?

wim leers’s picture

Component: Miscellaneous » Code

Just out of interest what level of sponsorship might you be looking for?

Please contact me via my contact tab here at Drupal.org or via http://wimleers.com/contact.

wim leers’s picture

Assigned: Unassigned » wim leers

The initial version with multiple select support has been committed: http://drupal.org/cvs?commit=93142. The "Remove" button does not yet work though, that's for the next revision.

michelle’s picture

Thanks very much for doing this. The demo looked awesome. I can't wait to try it out!

Michelle

wim leers’s picture

Status: Active » Fixed

And now it is complete.

People who are interested in this new feature, please start testing it and file bug reports! (I hope there won't be too many, of course.)

derjochenmeyer’s picture

If $dropbox->lineages is not set i get errors on line 532, 537, 333

is wrapping it in if ($dropbox->lineages) { ... } a solution?

derjochenmeyer’s picture

StatusFileSize
new701 bytes

I had some thoughts on layout. the width of 10% lets lines wrap too early for longer lineages and the add button is one line below the hierarchical select, is this on purpose?

What about this in the css file?

div.hierarchical-select-dropbox {
  width: 70%;
}

input.hierarchical-select-add-to-dropbox {
  margin-top:0;
}

AND
.hide() in hierarchical_select.js line 92 is commented ;)

derjochenmeyer’s picture

Status: Fixed » Needs review

Sorry, tell me if this is not my responsibility. Setting it to active.

wim leers’s picture

70% is super ugly, because then there will be too much whitespace. Feel free to improve the CSS, I agree that it could be improved *a lot*, but I'm no CSS wizard... Please continue CSS improvements in another issue.

I'm working on the bug you've reported.

wim leers’s picture

Status: Needs review » Fixed

Fixed now.

The changes you suggested wouldn't have been sufficient. Check the diff from version 1.12 to version 1.14 of the .module file if you want to know what had to be changed.

And please report bugs as new issues the next time, that's exactly what the issue tracker is for!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.