27 July 2009 at 4:03pm
Does anyone have any hints on activating the drag and drop reordering as seen in the AssetManager?
In the example code of ResourcePage is it possible to activate it in the 'new FileDataObjectManager'. I thought it would be possible with $manager->showAll = true; or $manager->sortable();
I managed to get it going in a sense by adding
"SortOrder" => "Int"
to db array, and
static $default_sort = "SortOrder";
$manager->showAll = true;
I'm not sure if there's an easier way or if there's anything wrong with the current method...