[TASK] Further improvements for the site configuration
[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, trim',
61 'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplate.placeholder',
62 ],
63 ],
64 'errorFluidTemplatesRootPath' => [
65 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplatesRootPath',
66 'config' => [
67 'type' => 'input',
68 'eval' => 'trim',
69 ],
70 ],
71 'errorFluidLayoutsRootPath' => [
72 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidLayoutsRootPath',
73 'config' => [
74 'type' => 'input',
75 'eval' => 'trim',
76 ],
77 ],
78 'errorFluidPartialsRootPath' => [
79 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidPartialsRootPath',
80 'config' => [
81 'type' => 'input',
82 'eval' => 'trim',
83 ],
84 ],
85 'errorContentSource' => [
86 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorContentSource',
87 'config' => [
88 'type' => 'input',
89 'renderType' => 'inputLink',
90 'eval' => 'required',
91 'fieldControl' => [
92 'linkPopup' => [
93 'options' => [
94 'blindLinkOptions' => 'file,mail,spec,folder',
95 ]
96 ]
97 ],
98 ],
99 ],
100 'errorPhpClassFQCN' => [
101 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN',
102 'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorPhpClassFQCN',
103 'config' => [
104 'type' => 'input',
105 'eval' => 'required, trim',
106 'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN.placeholder',
107 ],
108 ],
109 ],
110 'types' => [
111 '1' => [
112 'showitem' => 'errorCode, errorHandler',
113 ],
114 'Fluid' => [
115 'showitem' => 'errorCode, errorHandler, errorFluidTemplate,
116 --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.tab.rootpaths,
117 errorFluidTemplatesRootPath, errorFluidLayoutsRootPath, errorFluidPartialsRootPath',
118 ],
119 'Page' => [
120 'showitem' => 'errorCode, errorHandler, errorContentSource',
121 ],
122 'PHP' => [
123 'showitem' => 'errorCode, errorHandler, errorPhpClassFQCN',
124 ],
125 ],
126 ];