[TASK] Further improvements for the site configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / SiteConfiguration / site.php
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 'config' => [
27 'type' => 'select',
28 'readOnly' => true,
29 'renderType' => 'selectSingle',
30 'foreign_table' => 'pages',
31 'foreign_table_where' => ' AND (is_siteroot=1 OR (pid=0 AND doktype IN (1,6,7))) AND l10n_parent = 0 ORDER BY pid, sorting',
32 ],
33 ],
34 'base' => [
35 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.base',
36 'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.base',
37 'config' => [
38 'type' => 'input',
39 'eval' => 'required, trim',
40 ],
41 ],
42 'baseVariants' => [
43 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.baseVariants',
44 'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.baseVariants',
45 'config' => [
46 'type' => 'inline',
47 'foreign_table' => 'site_base_variant',
48 'appearance' => [
49 'enabledControls' => [
50 'info' => false,
51 ],
52 ],
53 ],
54 ],
55 'languages' => [
56 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.languages',
57 'config' => [
58 'type' => 'inline',
59 'foreign_table' => 'site_language',
60 'foreign_selector' => 'languageId',
61 'foreign_unique' => 'languageId',
62 'size' => 4,
63 'minitems' => 1,
64 'appearance' => [
65 'collapseAll' => true,
66 'enabledControls' => [
67 'info' => false,
68 ],
69 ],
70 ],
71 ],
72 'errorHandling' => [
73 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.errorHandling',
74 'config' => [
75 'type' => 'inline',
76 'foreign_table' => 'site_errorhandling',
77 'appearance' => [
78 'collapseAll' => true,
79 'enabledControls' => [
80 'info' => false,
81 ],
82 ],
83 ],
84 ],
85 'routes' => [
86 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.routes',
87 'config' => [
88 'type' => 'inline',
89 'foreign_table' => 'site_route',
90 'appearance' => [
91 'collapseAll' => true,
92 'enabledControls' => [
93 'info' => false,
94 ],
95 ],
96 ],
97 ],
98 ],
99 'types' => [
100 '0' => [
101 'showitem' => 'identifier, rootPageId, base,baseVariants,
102 --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.languages, languages,
103 --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.errorHandling, errorHandling,
104 --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.routes, routes',
105 ],
106 ],
107 ];