19 July 2012 at 3:13pm
(Last edited: 19 July 2012 3:14pm),
I seem to be very good at creating ghost town posts on this forum but thought I'd have one last attempt.
There is very minimal documentation out there on SS3 Grid Fields at the moment. I am looking for a way to achieve drag and drop (or another method) reordering of the items in a Grid Field. Using the dataobjectmanager in SS2.4 I just had to add SortableDataObject::add_sortable_class('Classname') to my config file and hey presto, I could order the items.
Does anyone know how I can achieve this with Grid Fields in SS3?
There's a [url=https://github.com/UndefinedOffset/SortableGridField]Sortable Grid Field[/url] module that provides a component for allowing drag and drop reordering of GridField objects. You just need to provide a sort field.
6 January 2013 at 9:39pm
(Last edited: 6 January 2013 9:40pm),
thanks for this post was very helpfull just now... with the dropdown list, i discovered i could use an Enum data type.
worked for what i needed, let me know if that works for you or if you find another way..