PHP code example of webcoast / dot-forms

1. Go to this page and download the library: Download webcoast/dot-forms 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/ */

    

webcoast / dot-forms example snippets


\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', [
    'settings.pagination.itemsPerPage' => [
        'label' => 'Items per page',
        'config' => [
            'type' => 'number',
            'format' => 'integer'
            'size' => 5,
            'default' => 10,
        ],
    ],
    'settings.pagination.maxNumberOfLinks' => [
        'label' => 'Max number of links',
        'config' => [
            'type' => 'number',
            'format' => 'integer'
            'size' => 5,
            'default' => 7,
        ],
    ],
]);

$GLOBALS['TCA']['tt_content']['palettes']['settings.pagination'] = [
    'label' => 'Pagination',
    'showitem' => 'settings.pagination.itemsPerPage, settings.pagination.maxNumberOfLinks',
];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', '--palette--;;settings.pagination', '{yourCType}', 'after:header');