tx_typo3roadmap_domain_model_feature.php 8.08 KB
Newer Older
Christian Knauf's avatar
Christian Knauf committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
return [
    'ctrl' => [
        'title' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_feature',
        'label' => 'header',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'versioningWS' => true,
        'languageField' => 'sys_language_uid',
        'transOrigPointerField' => 'l10n_parent',
        'transOrigDiffSourceField' => 'l10n_diffsource',
        'delete' => 'deleted',
        'enablecolumns' => [
            'disabled' => 'hidden',
            'starttime' => 'starttime',
            'endtime' => 'endtime',
        ],
        'searchFields' => 'header,description,images,link,typo3releaseminorversion,feature_area',
        'iconfile' => 'EXT:typo3_roadmap/Resources/Public/Icons/tx_typo3roadmap_domain_model_feature.gif'
    ],
    'interface' => [
        'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, header, description, images, link, typo3releasemajorversion, typo3releaseminorversion, feature_area',
    ],
    'types' => [
        '1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, header, description, images, link, typo3releasemajorversion, typo3releaseminorversion, feature_area, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'],
    ],
    'columns' => [
        'sys_language_uid' => [
            'exclude' => true,
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectSingle',
                'special' => 'languages',
                'items' => [
                    [
                        'LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages',
                        -1,
                        'flags-multiple'
                    ]
                ],
                'default' => 0,
            ],
        ],
        'l10n_parent' => [
            'displayCond' => 'FIELD:sys_language_uid:>:0',
            'exclude' => true,
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectSingle',
                'items' => [
                    ['', 0],
                ],
                'foreign_table' => 'tx_typo3roadmap_domain_model_feature',
                'foreign_table_where' => 'AND tx_typo3roadmap_domain_model_feature.pid=###CURRENT_PID### AND tx_typo3roadmap_domain_model_feature.sys_language_uid IN (-1,0)',
            ],
        ],
        'l10n_diffsource' => [
            'config' => [
                'type' => 'passthrough',
            ],
        ],
        't3ver_label' => [
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
            'config' => [
                'type' => 'input',
                'size' => 30,
                'max' => 255,
            ],
        ],
        'hidden' => [
            'exclude' => true,
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
            'config' => [
                'type' => 'check',
                'items' => [
                    '1' => [
                        '0' => 'LLL:EXT:lang/locallang_core.xlf:labels.enabled'
                    ]
                ],
            ],
        ],
        'starttime' => [
            'exclude' => true,
            'l10n_mode' => 'mergeIfNotBlank',
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
            'config' => [
                'type' => 'input',
                'size' => 13,
                'eval' => 'datetime',
                'default' => 0,
            ],
        ],
        'endtime' => [
            'exclude' => true,
            'l10n_mode' => 'mergeIfNotBlank',
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
            'config' => [
                'type' => 'input',
                'size' => 13,
                'eval' => 'datetime',
                'default' => 0,
                'range' => [
                    'upper' => mktime(0, 0, 0, 1, 1, 2038)
                ],
            ],
        ],

        'header' => [
            'exclude' => false,
            'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_feature.header',
            'config' => [
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim,required'
            ],
        ],
        'description' => [
            'exclude' => false,
            'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_feature.description',
            'config' => [
                'type' => 'text',
                'cols' => 40,
                'rows' => 15,
                'eval' => 'trim,required',
            ],
            'defaultExtras' => 'richtext:rte_transform'
        ],
        'images' => [
Harry Glatz's avatar
Harry Glatz committed
132
133
134
135
136
            'exclude' => 0,
            'l10n_mode' => 'prefixLangTitle',
            'l10n_cat' => 'text',
            'label' => 'Media Boris',
            'config' => $GLOBALS['TCA']['tt_content']['columns']['assets']['config'],
Christian Knauf's avatar
Christian Knauf committed
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
        ],
        'link' => [
            'exclude' => false,
            'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_feature.link',
            'config' => [
                'type' => 'input',
                'wizards' => [
                    'link' => [
                        'type' => 'popup',
                        'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_link.gif',
                        'module' => [
                            'name' => 'wizard_element_browser',
                            'urlParameters' => [
                                'mode' => 'wizard',
                            ],
                        ],
                        'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
                    ],
                ],
                'size' => 30,
                'eval' => 'trim'
            ],
        ],
        'typo3releasemajorversion' => [
            'exclude' => false,
            'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_feature.typo3releasemajorversion',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectSingle',
                'foreign_table' => 'tx_typo3roadmap_domain_model_majorversion',
                'minitems' => 1,
                'maxitems' => 1,
                'size' => 1,
                'items' => [
                    ['', '']
                ],
            ],
            'onChange'=>'reload',
        ],
        'typo3releaseminorversion' => [
            'exclude' => false,
            'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_feature.typo3releaseminiorversion',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectSingle',
                'foreign_table' => 'tx_typo3roadmap_domain_model_minorversion',
                'foreign_table_where' => 'tx_typo3roadmap_domain_model_minorversion.major_version =###REC_FIELD_typo3releasemajorversion###',
                'minitems' => 1,
                'maxitems' => 1,
                'size' => 1,
                'items' => [
                    ['', '']
                ],
            ],
        ],
        'feature_area' => [
            'exclude' => false,
            'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_feature.feature_area',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectSingle',
                'foreign_table' => 'tx_typo3roadmap_domain_model_featurearea',
                'minitems' => 1,
                'maxitems' => 1,
                'size' => 1,
                'items' => [
                    ['', '']
                ],
            ],
        ],

    ],
];