Hello
yes the proper way is to use:
$data["ordering"] = ............;
and it should allow it, i will commit a fix (will be in future release):
To test the fix now, the model file to edit is:
administrator/component/com_flexicontent/models/parentitemclass.php
-
please do not make any other chages to the file !! your installation will not work after upgrading
The item model code will clear $data["ordering"] ,
if the USER cannot "editState", but later it also does:
// For new items get next available ordering number
if ($isnew) {
$item->ordering = $item->getNextOrder();
}
Try this fix to allow it:
// For new items get next available ordering number
if ($isnew) {
if ( empty($item->ordering) || !$canEditState) $item->ordering = $item->getNextOrder();
}
test and post back