This operation allows your admins to reoder & nest entries.
Your model should have the following integer fields, with a default value of 0:
parent_id field has to be nullable.
Reorder operation is disabled by default. To enable it, you should use
$this->crud->allowAccess('reorder'); inside your
setup() method. This will make a Reorder button appear in ListEntries, in the
top button stack. Then, in your EntityCrudController's
attribute_nameshould be the attribute you want shown on the draggable elements (ex:
ALLOWED_DEPTHshould be an integer, how many levels deep would you allow your admin to go when nesting; for infinit levels, you should set it to
/reorder route points to a
reorder() method in your
Then you'll love our premium add-ons - productivity tools and tons of new features.