nestordedios / bolt-dragsort

Bolt 5 drag to sort extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bolt 5 drag and drop extension

Author: Philipp Jeschek

This extension enables drag and drop sorting for records in the backend of Bolt 5.

Installation:

composer require jeschek/dragsort

To enable drag and drop sorting add the following field to your content type:

sort:
    type: number
    mode: integer
    default: 10

There are some issues when trying to sort the records in the backend using

order: sort

To bypass that the addon changes the creation date to be able to sort by that property. If you use the creation date please create a full database backup before using this addon.

order: createdAt

About

Bolt 5 drag to sort extension

License:MIT License


Languages

Language:PHP 89.9%Language:Twig 10.1%