tx_terfe2_domain_model_tag.php 3.61 KB
Newer Older
1
<?php
2 3
return [
    'ctrl' => [
4
        'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_tag',
5 6 7 8 9 10 11 12 13 14 15
        'label' => 'title',
        'searchFields' => 'title',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'versioningWS' => 2,
        'versioning_followPages' => true,
        'origUid' => 't3_origuid',
        'languageField' => 'sys_language_uid',
        'transOrigPointerField' => 'l18n_parent',
        'transOrigDiffSourceField' => 'l18n_diffsource',
        'delete' => 'deleted',
16
        'enablecolumns' => [
17
            'disabled' => 'hidden'
18
        ],
19
        'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/tag.gif',
20 21
    ],
    'interface' => [
22
        'showRecordFieldList' => 'title,extensions',
23 24 25 26 27 28 29 30 31
    ],
    'types' => [
        '1' => ['showitem' => 'title'],
    ],
    'palettes' => [
        '1' => ['showitem' => ''],
    ],
    'columns' => [
        'sys_language_uid' => [
32 33
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
34
            'config' => [
35 36 37
                'type' => 'select',
                'foreign_table' => 'sys_language',
                'foreign_table_where' => 'ORDER BY sys_language.title',
38 39 40 41 42 43 44
                'items' => [
                    ['LLL:EXT:lang/locallang_general.php:LGL.allLanguages', -1],
                    ['LLL:EXT:lang/locallang_general.php:LGL.default_value', 0],
                ],
            ],
        ],
        'l18n_parent' => [
45 46 47
            'displayCond' => 'FIELD:sys_language_uid:>:0',
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',
48
            'config' => [
49 50 51
                'type' => 'select',
                'foreign_table' => 'tx_terfe2_domain_model_tag',
                'foreign_table_where' => 'AND tx_terfe2_domain_model_tag.uid=###REC_FIELD_l18n_parent### AND tx_terfe2_domain_model_tag.sys_language_uid IN (-1,0)',
52 53 54 55 56 57 58
                'items' => [
                    ['', 0],
                ],
            ],
        ],
        'l18n_diffsource' => [
            'config' => [
59
                'type' => 'passthrough',
60 61 62
            ],
        ],
        't3ver_label' => [
63 64
            'displayCond' => 'FIELD:t3ver_label:REQ:true',
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
65
            'config' => [
66 67
                'type' => 'none',
                'cols' => 27,
68 69 70
            ],
        ],
        'hidden' => [
71 72
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
73
            'config' => [
74
                'type' => 'check',
75 76 77
            ],
        ],
        'title' => [
78
            'exclude' => 0,
79
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_tag.title',
80
            'config' => [
81 82 83
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim,required',
84 85 86
            ],
        ],
        'extensions' => [
87
            'exclude' => 1,
88
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_tag.extensions',
89
            'config' => [
90 91 92 93 94 95 96 97 98
                'type' => 'select',
                'size' => 10,
                'minitems' => 0,
                'maxitems' => 9999,
                'autoSizeMax' => 30,
                'multiple' => 0,
                'foreign_table' => 'tx_terfe2_domain_model_extension',
                'MM' => 'tx_terfe2_extension_tag_mm',
                'MM_opposite_field' => 'tags',
99 100 101 102
            ],
        ],
    ],
];