PHP code example of soft2do / moduleview-draggable
1. Go to this page and download the library: Download soft2do/moduleview-draggable 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/ */
soft2do / moduleview-draggable example snippets
javascript
$GLOBALS['TCA']['tx_project_domain_model_name']['ctrl']['default_sortby'] ='sorting';
$GLOBALS['TCA']['tx_project_domain_model_name']['ctrl']['sortby'] ='sorting';
$GLOBALS['TCA']['tx_project_domain_model_name']['ctrl']['draggable'] =true;
javascript
protected $defaultOrderings = [
'sorting' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING,
];