Open wvengen opened 11 years ago
+1, but in the next milestone.
This may be part of a solution: https://github.com/swanandp/acts_as_list or some others https://www.ruby-toolbox.com/categories/Active_Record_Sortables
Then, on the ui-side of things, something like this perhaps: https://harryche2008.wordpress.com/2008/07/19/how-to-do-ajax-style-drag-n-drop-sorting-with-rails/
when also tackling foodcoop-adam#30, one of https://www.ruby-toolbox.com/categories/Active_Record_Nesting (some of which include ordering)
Done in foodcoop-adam's beta branch, plus nested categories. Would need backporting to foodcoops' version, or adoption of the new user-interface.
This would be great (along with nested categories). Is it possible to adopt this from foodcoop-adam?
Related to #1068.
Especially if you have a supplier with a broad product range with both fresh and dry goods, it is really inconvenient to have e.g. Beverages
with 20 sorts of juice at the top and Vegetables
at the bottom of a list of hundreds of articles. You'd want to put fresh goods to the top, as usually these are the articles that change the most often, so members will see the current offers at first when opening the order.
In my coop, this was so important that I renamed all 43 categories manually with prefixes like (a)
to (z)
. Perhaps spaces could have been a workaround as well (works for sorting links).
A drag & drop list would be the best solution, I guess. Nesting would also be great, but way less important.
Currently it does not seem to be able to order categories. This can be quite confusing; the "Other" category, for example, would be placed best at the end; or cheese and milk could follow each other.