tx_terfe2_domain_model_author.php 6.17 KB
Newer Older
speedprogs_de's avatar
speedprogs_de committed
1
<?php
2 3
return [
    'ctrl' => [
4
        'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author',
5 6 7 8 9 10 11 12 13 14 15
        'label' => 'name',
        'searchFields' => 'name,email,username',
        '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/author.gif',
20 21
    ],
    'interface' => [
22
        'showRecordFieldList' => 'name,email,company,forge_link,username,versions,frontend_user,author_type',
23 24 25 26 27 28 29 30 31
    ],
    'types' => [
        '1' => ['showitem' => 'name,email,company,forge_link,username,versions,frontend_user,author_type'],
    ],
    '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_author',
                'foreign_table_where' => 'AND tx_terfe2_domain_model_author.uid=###REC_FIELD_l18n_parent### AND tx_terfe2_domain_model_author.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
            ],
        ],
        'name' => [
78
            'exclude' => 1,
79
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.name',
80
            'config' => [
81 82 83
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim,required',
84 85 86
            ],
        ],
        'email' => [
87
            'exclude' => 1,
88
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.email',
89
            'config' => [
90 91 92
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
93 94 95
            ],
        ],
        'company' => [
96
            'exclude' => 1,
97
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.company',
98
            'config' => [
99 100 101
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
102 103 104
            ],
        ],
        'forge_link' => [
105
            'exclude' => 1,
106
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.forge_link',
107
            'config' => [
108 109 110
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
111 112 113
            ],
        ],
        'username' => [
114
            'exclude' => 1,
115
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.username',
116
            'config' => [
117 118 119
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
120 121 122
            ],
        ],
        'versions' => [
123
            'exclude' => 1,
124
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.versions',
125
            'config' => [
126 127 128 129
                'type' => 'inline',
                'foreign_table' => 'tx_terfe2_domain_model_version',
                'foreign_field' => 'author',
                'maxitems' => 9999,
130
                'appearance' => [
131 132
                    'collapse' => 0,
                    'newRecordLinkPosition' => 'bottom',
133 134 135 136
                ],
            ],
        ],
        'frontend_user' => [
137
            'exclude' => 1,
138
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_extension.frontend_user',
139
            'config' => [
140 141 142
                'type' => 'inline',
                'foreign_table' => 'fe_users',
                'maxitems' => 1,
143 144 145
            ],
        ],
        'author_type' => [
146
            'exclude' => 1,
147
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.author_type',
148
            'config' => [
149
                'type' => 'select',
150 151 152 153 154 155 156 157 158 159
                'items' => [
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.author_type.0', 0],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.author_type.1', 1],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.author_type.2', 2],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_author.author_type.3', 3],
                ],
            ],
        ],
    ],
];