‪TYPO3CMS  9.5
site.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'label' => 'identifier',
6  'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.ctrl.title',
7  'typeicon_classes' => [
8  'default' => 'mimetypes-x-content-domain',
9  ],
10  ],
11  'columns' => [
12  'identifier' => [
13  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.identifier',
14  'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.identifier',
15  'config' => [
16  'type' => 'input',
17  'size' => 35,
18  'max' => 255,
19  // identifier is used as directory name - allow a-z,0-9,_,- as chars only.
20  // unique is additionally checked server side
21  'eval' => 'required, lower, alphanum_x, trim',
22  ],
23  ],
24  'rootPageId' => [
25  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.rootPageId',
26  'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.rootPageId',
27  'config' => [
28  'type' => 'select',
29  'readOnly' => true,
30  'renderType' => 'selectSingle',
31  'foreign_table' => 'pages',
32  'foreign_table_where' => ' AND (is_siteroot=1 OR (pid=0 AND doktype IN (1,6,7))) AND l10n_parent = 0 ORDER BY pid, sorting',
33  ],
34  ],
35  'base' => [
36  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.base',
37  'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.base',
38  'config' => [
39  'type' => 'input',
40  'eval' => 'required, trim',
41  ],
42  ],
43  'baseVariants' => [
44  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.baseVariants',
45  'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.baseVariants',
46  'config' => [
47  'type' => 'inline',
48  'foreign_table' => 'site_base_variant',
49  'appearance' => [
50  'enabledControls' => [
51  'info' => false,
52  ],
53  ],
54  ],
55  ],
56  'languages' => [
57  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.languages',
58  'config' => [
59  'type' => 'inline',
60  'foreign_table' => 'site_language',
61  'foreign_selector' => 'languageId',
62  'foreign_unique' => 'languageId',
63  'size' => 4,
64  'minitems' => 1,
65  'appearance' => [
66  'collapseAll' => true,
67  'enabledControls' => [
68  'info' => false,
69  ],
70  ],
71  ],
72  ],
73  'errorHandling' => [
74  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.errorHandling',
75  'config' => [
76  'type' => 'inline',
77  'foreign_table' => 'site_errorhandling',
78  'appearance' => [
79  'collapseAll' => true,
80  'enabledControls' => [
81  'info' => false,
82  ],
83  ],
84  ],
85  ],
86  'routes' => [
87  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.routes',
88  'config' => [
89  'type' => 'inline',
90  'foreign_table' => 'site_route',
91  'appearance' => [
92  'collapseAll' => true,
93  'enabledControls' => [
94  'info' => false,
95  ],
96  ],
97  ],
98  ],
99  ],
100  'types' => [
101  '0' => [
102  'showitem' => '--palette--;;default,--palette--;;base,
103  --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.languages, languages,
104  --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.errorHandling, errorHandling,
105  --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.routes, routes',
106  ],
107  ],
108  'palettes' => [
109  'default' => [
110  'showitem' => 'rootPageId, identifier'
111  ],
112  'base' => [
113  'showitem' => 'base, baseVariants'
114  ]
115  ]
116 ];