‪TYPO3CMS  10.4
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  'websiteTitle' => [
57  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.websiteTitle',
58  'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.websiteTitle',
59  'config' => [
60  'type' => 'input',
61  'eval' => 'trim',
62  'default' => '',
63  ],
64  ],
65  'languages' => [
66  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.languages',
67  'config' => [
68  'type' => 'inline',
69  'foreign_table' => 'site_language',
70  'foreign_selector' => 'languageId',
71  'foreign_unique' => 'languageId',
72  'size' => 4,
73  'minitems' => 1,
74  'appearance' => [
75  'collapseAll' => true,
76  'enabledControls' => [
77  'info' => false,
78  ],
79  ],
80  ],
81  ],
82  'errorHandling' => [
83  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.errorHandling',
84  'config' => [
85  'type' => 'inline',
86  'foreign_table' => 'site_errorhandling',
87  'appearance' => [
88  'collapseAll' => true,
89  'enabledControls' => [
90  'info' => false,
91  ],
92  ],
93  ],
94  ],
95  'routes' => [
96  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.routes',
97  'config' => [
98  'type' => 'inline',
99  'foreign_table' => 'site_route',
100  'appearance' => [
101  'collapseAll' => true,
102  'enabledControls' => [
103  'info' => false,
104  ],
105  ],
106  ],
107  ],
108  ],
109  'types' => [
110  '0' => [
111  'showitem' => '--palette--;;default,--palette--;;base,
112  --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.languages, languages,
113  --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.errorHandling, errorHandling,
114  --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.routes, routes',
115  ],
116  ],
117  'palettes' => [
118  'default' => [
119  'showitem' => 'rootPageId, identifier, --linebreak--, websiteTitle'
120  ],
121  'base' => [
122  'showitem' => 'base, baseVariants'
123  ]
124  ]
125 ];