New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drag and drop reordering of lists [$25] #943
Comments
I'm about to start work on this. I'll keep this thread updated. If anyone has any suggestions on how this should work then please let me know. |
Please hold off on this, it is a planned feature. |
Nice one, I'll leave it to you guys then. |
Is this coming soon? I would have to write my own otherwise anyway, because there is a time issue on my side of things... |
It would be amazing to have this one implemented. Currently I've seen some plugins using their own versions of drag&drop sorting. |
Is there any update on this? Would be an awesome feature! |
Yes, this could be very usefull to standardise the way to manage order with drag&drop |
+1 for this feature |
+1 |
Whats the $10 bounty thing? My company will pay that right now. |
It means someone has put up $10 to see this happen |
Also it would be good to be compatible with showTree option of lists. Sometimes it's good to have grouped rows. This project provides a good example of drag/drop lists/tables. Also it have a powerful API to control almost everything. http://johnny.github.io/jquery-sortable |
@daftspunk let me know where I need to paypal, this USD or AUD? |
And ignore me, turns out I didnt see the link before posting... 👍 |
I think this needs explaining - at least to me it did ;-) |
+1 How would you guys imagine this reordering thing to work? The Sortable trait from the core defines the logic for saving a sort_oder (or any other column name) of type integer to the database. One would just have to setup the model and database accordingly. But I'm not sure if this helps, since the usual configuration stuff regarding list behaviour is managed via the models yaml files or the controller yaml configs. But the trait cannot be added on runtime, so this has to be implemented differently I guess. Anyway, two quenstions I've run into: In case of a list of all model items, this is pretty straight forward, i.e. we could rearrange the list via drag&drop and save all items' sort_order to the database, giving each item a unique integer. And also how should this work in regard to the sortable functions from the columns.yaml of the model that defines how the list widget handles sorting. Would it make sense to either make automatic sorting possible, as it's defined right now or to restrict everything to manual sorting? Any ideas? [EDIT] |
+1 |
Is there any documentation for this new feature, or if not do you have it in your todo list? |
Thanks, I was looking on Lists, I thought that Sorting Records was from older release :). Maybe a different title will be better. |
Maybe it could be called "reordering" instead of "sorting" but in the case of documentation for new features, a good place to check is the documentation repository: https://github.com/octobercms/docs/commits/master |
How can i user reorder functionality with relaton manager? |
Haven't tried any of these, but maybe look at one of these: https://github.com/scottbedard/draganddrop You can also perform a So your URL would besomething like: PS: This is not the place to ask these kind of questions. You should better look at the forums or ask it on the OctoberCMS Slack :) |
It would be great if it was possible to enable the ability to reorder lists in the backend using drag and drop.
It would also be great if this worked within relation lists too.
Is this a planned feature? If not, is this something you'd be happy me adding via a PR?
The text was updated successfully, but these errors were encountered: