‪TYPO3CMS  9.5
site_errorhandling.php
Go to the documentation of this file.
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  'size' => 8,
29  'default' => 404,
30  'valuePicker' => [
31  'mode' => '',
32  'items' => [
33  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.404', '404'],
34  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.403', '403'],
35  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.500', '500'],
36  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.503', '503'],
37  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.0', '0'],
38  ],
39  ],
40  ],
41  ],
42  'errorHandler' => [
43  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler',
44  'config' => [
45  'type' => 'select',
46  'renderType' => 'selectSingle',
47  'required' => true,
48  'items' => [
49  ['', ''],
50  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.fluid', 'Fluid'],
51  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.page', 'Page'],
52  ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.php', 'PHP'],
53  ],
54  ],
55  ],
56  'errorFluidTemplate' => [
57  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplate',
58  'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorFluidTemplate',
59  'config' => [
60  'type' => 'input',
61  'eval' => 'required, trim',
62  'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplate.placeholder',
63  ],
64  ],
65  'errorFluidTemplatesRootPath' => [
66  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplatesRootPath',
67  'config' => [
68  'type' => 'input',
69  'eval' => 'trim',
70  ],
71  ],
72  'errorFluidLayoutsRootPath' => [
73  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidLayoutsRootPath',
74  'config' => [
75  'type' => 'input',
76  'eval' => 'trim',
77  ],
78  ],
79  'errorFluidPartialsRootPath' => [
80  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidPartialsRootPath',
81  'config' => [
82  'type' => 'input',
83  'eval' => 'trim',
84  ],
85  ],
86  'errorContentSource' => [
87  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorContentSource',
88  'config' => [
89  'type' => 'input',
90  'renderType' => 'inputLink',
91  'eval' => 'required',
92  'fieldControl' => [
93  'linkPopup' => [
94  'options' => [
95  'blindLinkOptions' => 'file,mail,spec,folder',
96  ]
97  ]
98  ],
99  ],
100  ],
101  'errorPhpClassFQCN' => [
102  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN',
103  'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorPhpClassFQCN',
104  'config' => [
105  'type' => 'input',
106  'eval' => 'required, trim',
107  'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN.placeholder',
108  ],
109  ],
110  ],
111  'types' => [
112  '1' => [
113  'showitem' => '--palette--;;general',
114  ],
115  'Fluid' => [
116  'showitem' => '--palette--;;general, errorFluidTemplate,
117  --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.tab.rootpaths,
118  errorFluidTemplatesRootPath, errorFluidLayoutsRootPath, errorFluidPartialsRootPath',
119  ],
120  'Page' => [
121  'showitem' => '--palette--;;general, errorContentSource',
122  ],
123  'PHP' => [
124  'showitem' => '--palette--;;general, errorPhpClassFQCN',
125  ],
126  ],
127  'palettes' => [
128  'general' => [
129  'showitem' => 'errorCode, errorHandler'
130  ]
131  ]
132 ];