7938 Posts in 1466 Topics by 943 members
|Go to End|
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...
28 July 2009 at 3:45am
You need to add in your _config.php:
That will decorate in the field for you and handle the sort controller for that object. This is explained in the documentation.
28 July 2009 at 9:03am
.........I saw that in the documentation, but was hellishly confused at how assetmanager was achieving it without being in the config. Thank you Mr Uncle Cheese, it works a beaut
28 July 2009 at 10:06am Last edited: 28 July 2009 10:08am
The DOM will automatically add file as a sortable class if you have override_asset_admin set to true.
|Go to Top|