Skip to content

hh-com/contao-listviewsortable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

contao-listviewsortable

Sort dca list in Backend without child table

Make the list sortable:

$GLOBALS['TL_DCA']['tl_yourTable']['list']['sorting']['listViewSortable'] = true;

!Add the field "sorting"!

$GLOBALS['TL_DCA']['tl_yourTable']['fields']['sorting']['sql'] = "int(10) unsigned NOT NULL default 0";

Install

Copy to:
root
- src
- - hh-com
- - - contao-listviewsortable

Update your contao installation composer.json

"repositories": [
    {
        "type": "path",
        "url": "src/hh-com/contao-listviewsortable",
        "options": {
                "symlink": true
        }
    }
],
"require": {
    ...
    "hh-com/contao-listviewsortable": "@dev",
    ... 
}

Run:

php -d memory_limit=-1 ./path/to/composer.phar update

php vendor/bin/contao-console cache:clear

php vendor/bin/contao-console contao:symlinks

THX to https://github.com/psi-4ward/listViewSortable

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published