I noticed some discussion on here about having the ability to sort data objects in grid fields, I've been toying around with this a little bit over the day and have come up with something that seems to be working well for me in my testing https://github.com/UndefinedOffset/SortableGridField. Right now I have it as its own module but I'm wondering if it's something better suited to be merged into the core of SS 3.0?
It uses some code based off of UncleCheese's SortableDataObject for managing what classes are sortable. It functions very similar once the component is added to the grid field, it adds a checkbox to the grid field then removes pagination, filtering, and the sortable headers components when the box is checked allowing for the sort order to be easily determined. Sorting is done via drag-n-drop using jQuery ui which seems to be always loaded in the cms anyways.
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/k_dtb9bCrqMJ.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
We had this feature on our internal project tool for a while.As SS3 is progressing from team-based feature development to bugfixing,we're migrating all storycards which are likely to be actionedin the next month to our open bugtracker. I've done this for the sortable card:Had a brief look at Ed's module, looks good in principle.There's a couple of workarounds to get manymany sortinggoing, which should really be integrated into DataObject staticsand RelationList rather than augmentSQL calls on an extension.From a GridField's perspective, the only additionaldata the component should need is the database columnto sort on (either on the record table itself, or the many many join table).Plus, the module needs unit tests :)
On 10/05/2012, at 10:30 AM, Sigurd Magnusson wrote:
Sounds great! "Sortability" seems like a very useful attribute so seems something that should either be in core or at minimum a well supported extension...
Sig
On 10 May 2012 05:47, UndefinedOffset <edch...@gmail.com> wrote:
I noticed some discussion on here about having the ability to sort data objects in grid fields, I've been toying around with this a little bit over the day and have come up with something that seems to be working well for me in my testing https://github.com/UndefinedOffset/SortableGridField. Right now I have it as its own module but I'm wondering if it's something better suited to be merged into the core of SS 3.0?
It uses some code based off of UncleCheese's SortableDataObject for managing what classes are sortable. It functions very similar once the component is added to the grid field, it adds a checkbox to the grid field then removes pagination, filtering, and the sortable headers components when the box is checked allowing for the sort order to be easily determined. Sorting is done via drag-n-drop using jQuery ui which seems to be always loaded in the cms anyways.
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/k_dtb9bCrqMJ.
To post to this group, send email to silverstripe-dev@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To post to this group, send email to silverstripe-dev@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-dev+unsubscribe@googlegroups.com.
So I've done some looking into keyboard controls to do the sorting, there seems to be some attempts a few years ago but no one solution. I think I've knocked out most of what your asking for Ingo in your ticket, except for items 5 & 8 in your ticket, since as I mentioned prior it removes pagination, sortable headers and the filter components when drag and drop sorting is enabled. Can you have another look and let me know what you think?
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/AVIZM0Y86NMJ.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverstripe-dev@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-dev+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/UUvNyqMFo4cJ.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
You wanna throw up a pic of this on skitch? :)
Sig
On 19 May 2012 01:58, UndefinedOffset wrote:
I actually ended up going with a pulsing between the SS logo color and the white. Seems to work, but I'm not sure if its enough or the right fit. Also I've updated the cross page sorting so things are much better it's more of a shifting algorithm now instead of just swapping. Ingo can you have a look again and let me know what you think? I can setup a demo site later on if you want to try it out.To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/UUvNyqMFo4cJ.
On Thursday, May 17, 2012 6:11:54 AM UTC-3, Jakob Kristoferitsch wrote:UndefinedOffset wrote:--
> I think there also needs to be a really good visual cue when you start
> to drag a row that it can be dropped on the page buttons. But I'm not
> sure what that would look like, it has to be very clear or users won't
> understand.
Hi,
I would suggest highlighting the page buttons, either by giving them a
border with a strong contrast (maybe green?) or by turning them into a
different (darker or lighter) color.
A very nice looking alternative would be to put a shadow mask over the
parts of the page that can not be used as drop targets, but this is
certainly more complex.
Jakob
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To post to this group, send email to silverstripe-dev@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-dev+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/silverstripe-dev/-/yPNdjGhsC-EJ.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverstripe-dev@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-dev+unsubscribe@googlegroups.com.