‪TYPO3CMS  10.4
sys_redirect.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'title' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect',
6  'label' => 'source_host',
7  'label_alt' => 'source_path',
8  'label_alt_force' => true,
9  'crdate' => 'createdon',
10  'cruser_id' => 'createdby',
11  'tstamp' => 'updatedon',
12  'versioningWS' => false,
13  'default_sortby' => 'source_host, source_path',
14  'rootLevel' => 1,
15  'security' => [
16  'ignoreWebMountRestriction' => true,
17  'ignoreRootLevelRestriction' => true,
18  ],
19  'delete' => 'deleted',
20  'enablecolumns' => [
21  'disabled' => 'disabled',
22  'starttime' => 'starttime',
23  'endtime' => 'endtime',
24  ],
25  'typeicon_classes' => [
26  'default' => 'mimetypes-x-sys_redirect',
27  ],
28  'searchFields' => 'source_host,source_path,target,target_statuscode',
29  ],
30  'types' => [
31  '1' => [
32  'showitem' => '
33  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, --palette--;;source, --palette--;;targetdetails,
34  --div--;LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:tabs.redirectCount, disable_hitcount, hitcount, lasthiton,
35  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access, --palette--;;visibility'
36  ],
37  ],
38  'palettes' => [
39  'visibility' => [
40  'showitem' => 'disabled, --linebreak--, starttime, endtime'
41  ],
42  'source' => [
43  'showitem' => 'source_host, --linebreak--, source_path, respect_query_parameters, is_regexp'
44  ],
45  'targetdetails' => [
46  'showitem' => 'target, target_statuscode, --linebreak--, force_https, keep_query_parameters'
47  ],
48  ],
49  'columns' => [
50  'disabled' => [
51  'exclude' => true,
52  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
53  'config' => [
54  'type' => 'check',
55  'renderType' => 'checkboxToggle',
56  'items' => [
57  [
58  0 => '',
59  1 => '',
60  'invertStateDisplay' => true
61  ]
62  ],
63  ]
64  ],
65  'starttime' => [
66  'exclude' => true,
67  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
68  'config' => [
69  'type' => 'input',
70  'renderType' => 'inputDateTime',
71  'eval' => 'datetime,int',
72  'default' => 0
73  ]
74  ],
75  'endtime' => [
76  'exclude' => true,
77  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
78  'config' => [
79  'type' => 'input',
80  'renderType' => 'inputDateTime',
81  'eval' => 'datetime,int',
82  'default' => 0,
83  'range' => [
84  'upper' => mktime(0, 0, 0, 1, 1, 2038)
85  ]
86  ]
87  ],
88  'source_host' => [
89  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.source_host',
90  'config' => [
91  'type' => 'input',
92  'eval' => 'trim,required,' . \TYPO3\CMS\Redirects\Evaluation\SourceHost::class,
93  // items will be extended by local sys_domain records using dataprovider TYPO3\CMS\Redirects\FormDataProvider\ValuePickerItemDataProvider
94  'valuePicker' => [
95  'items' => [
96  [ 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:source_host_global_text',
97  '*',
98  ],
99  ],
100  ],
101  'default' => '*',
102  ],
103  ],
104  'source_path' => [
105  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.source_path',
106  'config' => [
107  'type' => 'input',
108  'size' => 30,
109  'eval' => 'trim,required',
110  'placeholder' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:source_path.placeholder',
111  'max' => 2048
112  ],
113  ],
114  'force_https' => [
115  'exclude' => true,
116  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.force_https.0',
117  'config' => [
118  'type' => 'check',
119  'renderType' => 'checkboxToggle',
120  'default' => 0,
121  'items' => [
122  [
123  0 => '',
124  1 => '',
125  ]
126  ],
127  ]
128  ],
129  'keep_query_parameters' => [
130  'exclude' => true,
131  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.keep_query_parameters.0',
132  'config' => [
133  'type' => 'check',
134  'renderType' => 'checkboxToggle',
135  'default' => 0,
136  'items' => [
137  [
138  0 => '',
139  1 => '',
140  ]
141  ],
142  ]
143  ],
144  'respect_query_parameters' => [
145  'exclude' => true,
146  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.respect_query_parameters.0',
147  'config' => [
148  'type' => 'check',
149  'renderType' => 'checkboxToggle',
150  'default' => 0,
151  'items' => [
152  [
153  0 => '',
154  1 => '',
155  ]
156  ],
157  ]
158  ],
159  'target' => [
160  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target',
161  'config' => [
162  'type' => 'input',
163  'eval' =>'required',
164  'renderType' => 'inputLink',
165  'softref' => 'typolink',
166  'fieldControl' => [
167  'linkPopup' => [
168  'options' => [
169  'blindLinkOptions' => 'mail,folder,telephone',
170  'blindLinkFields' => 'class, target, title'
171  ],
172  ],
173  ],
174  'max' => 2048
175  ],
176  ],
177  'target_statuscode' => [
178  'exclude' => true,
179  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode',
180  'config' => [
181  'type' => 'select',
182  'renderType' => 'selectSingle',
183  'items' => [
184  [
185  'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.301',
186  301,
187  '',
188  'change',
189  ],
190  [
191  'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.302',
192  302,
193  '',
194  'change',
195  ],
196  [
197  'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.303',
198  303,
199  '',
200  'change',
201  ],
202  [
203  'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.307',
204  307,
205  '',
206  'keep',
207  ],
208  [
209  'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.308',
210  308,
211  '',
212  'keep',
213  ],
214  ],
215  'itemGroups' => [
216  'keep' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.keep',
217  'change' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.change',
218  ],
219  'default' => 307,
220  'size' => 1,
221  ],
222  ],
223  'hitcount' => [
224  'exclude' => true,
225  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.hitcount',
226  'config' => [
227  'type' => 'input',
228  'size' => 5,
229  'default' => 0,
230  'readOnly' => true
231  ],
232  'displayCond' => 'USER:TYPO3\CMS\Redirects\UserFunctions\HitCountDisplayCondition->isEnabled'
233  ],
234  'lasthiton' => [
235  'exclude' => true,
236  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.lasthiton',
237  'config' => [
238  'type' => 'input',
239  'eval' => 'datetime,int',
240  'renderType' => 'inputDateTime',
241  'readOnly' => true
242  ],
243  'displayCond' => 'USER:TYPO3\CMS\Redirects\UserFunctions\HitCountDisplayCondition->isEnabled'
244  ],
245  'disable_hitcount' => [
246  'exclude' => true,
247  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.hitcountState',
248  'config' => [
249  'type' => 'check',
250  'renderType' => 'checkboxLabeledToggle',
251  'items' => [
252  [
253  0 => '',
254  1 => '',
255  'labelChecked' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
256  'labelUnchecked' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.disabled',
257  'invertStateDisplay' => true
258  ]
259  ],
260  ],
261  'displayCond' => 'USER:TYPO3\CMS\Redirects\UserFunctions\HitCountDisplayCondition->isEnabled'
262  ],
263  'is_regexp' => [
264  'exclude' => true,
265  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.is_regexp',
266  'config' => [
267  'type' => 'check',
268  'renderType' => 'checkboxToggle',
269  'items' => [
270  [
271  0 => '',
272  1 => '',
273  ]
274  ],
275  ]
276  ],
277  ],
278 ];