Currently, the hierarchical select allows only a set-style implementation with now sense of reordering.

Given that internally multi-selects are stored as arrays, an ability to reorder selected items would be useful.

In our particular case, we are using Hierarchical Select Node Reference to select an ordered list of items to appear. This is currently not possible.

The requested solution would be to provide drag handles on the selected item list, and always add new selections to the end of the list.

The drag handles should adopt the same behaviour as the rest of drupal standard use, that is, highlight and mark changes in yellow with an asterisk, and save changes when the node is saved.

I guess the "ordering" option should be optional (perhaps a hierarchical field configuration option checkbox).

Thanks,
Andrew

Comments

kars-t’s picture

Version: 6.x-3.7 » 7.x-3.x-dev
Priority: Major » Normal

Seems a reasonable request. Moving it to D7 and maybe this will be possible.

AnreeChess’s picture

That would be so great!

theunraveler’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new11.2 KB

Here's an initial attempt at allowing for reordering items in a hierarchical select dropbox. I'm pretty happy with the code, and it seems to work well in my testing.

jrusse27’s picture

This feature would be very very useful!