PHP code example of ameotoko / contao-dc-sortable

1. Go to this page and download the library: Download ameotoko/contao-dc-sortable library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ameotoko / contao-dc-sortable example snippets


// tl_custom.php
use Ameotoko\DCSortableBundle\DataContainer\DC_TableSortable;

$GLOBALS['TL_DCA']['tl_custom'] = [
    'config' => [
        'dataContainer' => DC_TableSortable::class, // enable the driver
    ],

    'list' => [
        'sorting' => [
            'mode' => DataContainer::MODE_SORTED, // this mode is his setting (              return \Contao\Image::getHtml($icon, $label, $attributes);
            }
        ]]
    ],

    // add