Skip to content

Drag and Drop Reordering

Carlos Moreira edited this page Jun 2, 2020 · 1 revision

The dragAndDrop feature allows you to offer the possibility for users to reorder the entries directly in the administration list. When reordering the framework will update the menu_order value of each entry to reflect the new order after a drag and drop event.

This feature doesn't need any values, so you just need to enable it, setting it to true.

Example:

return [
	'active'       => true,
	'type'         => 'cpt',
	'name'         => 'book',
	'features'     => [
		'dragAndDrop'   => true,
	],
];