‪TYPO3CMS  9.5
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  'interface' => [
31  'showRecordFieldList' => 'disabled, source_host, source_path, respect_query_parameters, is_regexp, force_https, keep_query_parameters, target, target_statuscode, hitcount, lasthiton, disable_hitcount',
32  ],
33  'types' => [
34  '1' => [
35  'showitem' => '
36  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, --palette--;;source, --palette--;;targetdetails,
37  --div--;LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:tabs.redirectCount, disable_hitcount, hitcount, lasthiton,
38  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access, --palette--;;visibility'
39  ],
40  ],
41  'palettes' => [
42  'visibility' => [
43  'showitem' => 'disabled, --linebreak--, starttime, endtime'
44  ],
45  'source' => [
46  'showitem' => 'source_host, --linebreak--, source_path, respect_query_parameters, is_regexp'
47  ],
48  'targetdetails' => [
49  'showitem' => 'target, target_statuscode, --linebreak--, force_https, keep_query_parameters'
50  ],
51  ],
52  'columns' => [
53  'disabled' => [
54  'exclude' => true,
55  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
56  'config' => [
57  'type' => 'check',
58  'renderType' => 'checkboxToggle',
59  'items' => [
60  [
61  0 => '',
62  1 => '',
63  'invertStateDisplay' => true
64  ]
65  ],
66  ]
67  ],
68  'starttime' => [
69  'exclude' => true,
70  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
71  'config' => [
72  'type' => 'input',
73  'renderType' => 'inputDateTime',
74  'eval' => 'datetime,int',
75  'default' => 0
76  ]
77  ],
78  'endtime' => [
79  'exclude' => true,
80  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
81  'config' => [
82  'type' => 'input',
83  'renderType' => 'inputDateTime',
84  'eval' => 'datetime,int',
85  'default' => 0,
86  'range' => [
87  'upper' => mktime(0, 0, 0, 1, 1, 2038)
88  ]
89  ]
90  ],
91  'source_host' => [
92  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.source_host',
93  'config' => [
94  'type' => 'input',
95  'eval' => 'trim,required,' . \TYPO3\CMS\Redirects\Evaluation\SourceHost::class,
96  // items will be extended by local sys_domain records using dataprovider TYPO3\CMS\Redirects\FormDataProvider\ValuePickerItemDataProvider
97  'valuePicker' => [
98  'items' => [
99  [ 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:source_host_global_text',
100  '*',
101  ],
102  ],
103  ],
104  'default' => '*',
105  ],
106  ],
107  'source_path' => [
108  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.source_path',
109  'config' => [
110  'type' => 'input',
111  'size' => 30,
112  'eval' => 'trim,required',
113  'placeholder' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:source_path.placeholder',
114  'max' => 2048
115  ],
116  ],
117  'force_https' => [
118  'exclude' => true,
119  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.force_https.0',
120  'config' => [
121  'type' => 'check',
122  'renderType' => 'checkboxToggle',
123  'default' => 0,
124  'items' => [
125  [
126  0 => '',
127  1 => '',
128  ]
129  ],
130  ]
131  ],
132  'keep_query_parameters' => [
133  'exclude' => true,
134  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.keep_query_parameters.0',
135  'config' => [
136  'type' => 'check',
137  'renderType' => 'checkboxToggle',
138  'default' => 0,
139  'items' => [
140  [
141  0 => '',
142  1 => '',
143  ]
144  ],
145  ]
146  ],
147  'respect_query_parameters' => [
148  'exclude' => true,
149  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.respect_query_parameters.0',
150  'config' => [
151  'type' => 'check',
152  'renderType' => 'checkboxToggle',
153  'default' => 0,
154  'items' => [
155  [
156  0 => '',
157  1 => '',
158  ]
159  ],
160  ]
161  ],
162  'target' => [
163  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target',
164  'config' => [
165  'type' => 'input',
166  'eval' =>'required',
167  'renderType' => 'inputLink',
168  'softref' => 'typolink',
169  'fieldControl' => [
170  'linkPopup' => [
171  'options' => [
172  'blindLinkOptions' => 'mail,folder,telephone',
173  'blindLinkFields' => 'class, target, title'
174  ],
175  ],
176  ],
177  'max' => 2048
178  ],
179  ],
180  'target_statuscode' => [
181  'exclude' => true,
182  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode',
183  'config' => [
184  'type' => 'select',
185  'renderType' => 'selectSingle',
186  'items' => [
187  ['LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.301', 301],
188  ['LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.302', 302],
189  ['LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.303', 303],
190  ['LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.target_statuscode.307', 307],
191  ],
192  'default' => 307,
193  'size' => 1,
194  ],
195  ],
196  'hitcount' => [
197  'exclude' => true,
198  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.hitcount',
199  'config' => [
200  'type' => 'input',
201  'size' => 5,
202  'default' => 0,
203  'readOnly' => true
204  ],
205  'displayCond' => 'USER:TYPO3\CMS\Redirects\UserFunctions\HitCountDisplayCondition->isEnabled'
206  ],
207  'lasthiton' => [
208  'exclude' => true,
209  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.lasthiton',
210  'config' => [
211  'type' => 'input',
212  'eval' => 'datetime,int',
213  'renderType' => 'inputDateTime',
214  'readOnly' => true
215  ],
216  'displayCond' => 'USER:TYPO3\CMS\Redirects\UserFunctions\HitCountDisplayCondition->isEnabled'
217  ],
218  'disable_hitcount' => [
219  'exclude' => true,
220  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.hitcountState',
221  'config' => [
222  'type' => 'check',
223  'renderType' => 'checkboxLabeledToggle',
224  'items' => [
225  [
226  0 => '',
227  1 => '',
228  'labelChecked' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
229  'labelUnchecked' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.disabled',
230  'invertStateDisplay' => true
231  ]
232  ],
233  ],
234  'displayCond' => 'USER:TYPO3\CMS\Redirects\UserFunctions\HitCountDisplayCondition->isEnabled'
235  ],
236  'is_regexp' => [
237  'exclude' => true,
238  'label' => 'LLL:EXT:redirects/Resources/Private/Language/locallang_db.xlf:sys_redirect.is_regexp',
239  'config' => [
240  'type' => 'check',
241  'renderType' => 'checkboxToggle',
242  'items' => [
243  [
244  0 => '',
245  1 => '',
246  ]
247  ],
248  ]
249  ],
250  ],
251 ];