1c0925c94b01c87353a349cefbabf2249f569323
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / SiteConfiguration / site_errorhandling.php
1 <?php
2
3 return [
4 'ctrl' => [
5 'label' => 'errorHandler',
6 'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getErrorHandlingTitle',
7 'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.ctrl.title',
8 'type' => 'errorHandler',
9 'typeicon_column' => 'errorHandler',
10 'typeicon_classes' => [
11 'default' => 'default-not-found',
12 'Fluid' => 'mimetypes-text-html',
13 'Page' => 'apps-pagetree-page-content-from-page',
14 'PHP' => 'mimetypes-text-php',
15 ],
16 ],
17 'columns' => [
18 'errorCode' => [
19 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode',
20 'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorCode',
21 'config' => [
22 'type' => 'input',
23 'eval' => 'required, trim, int',
24 'range' => [
25 'lower' => 0,
26 'upper' => 599,
27 ],
28 'default' => 404,
29 'valuePicker' => [
30 'mode' => '',
31 'items' => [
32 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.404', '404'],
33 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.403', '403'],
34 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.500', '500'],
35 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.503', '503'],
36 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.0', '0'],
37 ],
38 ],
39 ],
40 ],
41 'errorHandler' => [
42 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler',
43 'config' => [
44 'type' => 'select',
45 'renderType' => 'selectSingle',
46 'required' => true,
47 'items' => [
48 ['', ''],
49 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.fluid', 'Fluid'],
50 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.page', 'Page'],
51 ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.php', 'PHP'],
52 ],
53 ],
54 ],
55 'errorFluidTemplate' => [
56 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplate',
57 'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorFluidTemplate',
58 'config' => [
59 'type' => 'input',
60 'eval' => 'required',
61 ],
62 ],
63 'errorFluidTemplatesRootPath' => [
64 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplatesRootPath',
65 'config' => [
66 'type' => 'input',
67 ],
68 ],
69 'errorFluidLayoutsRootPath' => [
70 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidLayoutsRootPath',
71 'config' => [
72 'type' => 'input',
73 ],
74 ],
75 'errorFluidPartialsRootPath' => [
76 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidPartialsRootPath',
77 'config' => [
78 'type' => 'input',
79 ],
80 ],
81 'errorContentSource' => [
82 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorContentSource',
83 'config' => [
84 'type' => 'input',
85 'renderType' => 'inputLink',
86 'eval' => 'required',
87 'fieldControl' => [
88 'linkPopup' => [
89 'options' => [
90 'blindLinkOptions' => 'file,mail,spec,folder',
91 ]
92 ]
93 ],
94 ],
95 ],
96 'errorPhpClassFQCN' => [
97 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN',
98 'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorPhpClassFQCN',
99 'config' => [
100 'type' => 'input',
101 'eval' => 'required',
102 ],
103 ],
104 ],
105 'types' => [
106 '1' => [
107 'showitem' => 'errorCode, errorHandler',
108 ],
109 'Fluid' => [
110 'showitem' => 'errorCode, errorHandler, errorFluidTemplate,
111 --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.tab.rootpaths,
112 errorFluidTemplatesRootPath, errorFluidLayoutsRootPath, errorFluidPartialsRootPath',
113 ],
114 'Page' => [
115 'showitem' => 'errorCode, errorHandler, errorContentSource',
116 ],
117 'PHP' => [
118 'showitem' => 'errorCode, errorHandler, errorPhpClassFQCN',
119 ],
120 ],
121 ];