tx_ter_extensionkeys.php 2.85 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?php
/**
 * This file is part of the TYPO3 CMS project.
 *
 * It is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, either version 2
 * of the License, or any later version.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 * The TYPO3 project - inspiring people to share!
 */
$extensionKey = 'ter';

return [
    'ctrl' => [
        'label' => 'extensionkey',
        'default_sortby' => 'ORDER BY extensionkey',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'title' => 'LLL:EXT:ter/locallang_tca.xml:tx_ter_extensionkeys',
Michal Cygankiewicz's avatar
Michal Cygankiewicz committed
23
        'iconfile' => \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($extensionKey)) . 'tx_ter_extensionkeys.gif',
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
        'dividers2tabs' => true,
    ],
    'interface' => [
        'showRecordFieldList' => 'extensionkey',
    ],
    'columns' => [
        'title' => [
            'label' => 'LLL:EXT:ter/locallang_tca.xml:tx_ter_extensionkeys.title',
            'config' => [
                'type' => 'input',
                'size' => '40',
                'max' => '250',
                'eval' => 'trim,required',
            ],
        ],
        'description' => [
            'label' => 'LLL:EXT:ter/locallang_tca.xml:tx_ter_extensionkeys.description',
            'config' => [
                'type' => 'text',
                'cols' => '40',
                'rows' => '5',
            ],
        ],
        'extensionkey' => [
            'label' => 'LLL:EXT:ter/locallang_tca.xml:tx_ter_extensionkeys.extensionkey',
            'config' => [
                'type' => 'input',
                'size' => '40',
                'max' => '30',
                'eval' => 'trim,unique,required',
            ],
        ],
        'ownerusername' => [
            'label' => 'LLL:EXT:ter/locallang_tca.xml:tx_ter_extensionkeys.ownerusername',
            'config' => [
                'type' => 'input',
                'size' => '40',
                'max' => '30',
                'eval' => 'trim',
            ],
        ],
        'maxstoresize' => [
            'label' => 'LLL:EXT:ter/locallang_tca.xml:tx_ter_extensionkeys.maxstoresize',
            'config' => [
                'type' => 'input',
                'size' => '10',
                'max' => '10',
                'eval' => 'int',
            ],
        ],
        'downloadcounter' => [
            'label' => 'LLL:EXT:ter/locallang_tca.xml:tx_ter_extensions.downloadcounter',
            'config' => [
                'type' => 'input',
                'size' => '5',
                'max' => '11',
            ],
        ],
    ],
    'types' => [
        '1' => ['showitem' => 'title,description,extensionkey,ownerusername,maxstoresize,downloadcounter'],
    ]
];