3a5f510f7bcde65b1e7a7ee075bae7db7009a176
[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',
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',
40 ],
41 ],
42 'baseVariants' => [
43 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.baseVariants',
44 'config' => [
45 'type' => 'inline',
46 'foreign_table' => 'site_base_variant',
47 'appearance' => [
48 'enabledControls' => [
49 'info' => false,
50 ],
51 ],
52 ],
53 ],
54 'languages' => [
55 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.languages',
56 'config' => [
57 'type' => 'inline',
58 'foreign_table' => 'site_language',
59 'foreign_selector' => 'languageId',
60 'foreign_unique' => 'languageId',
61 'size' => 4,
62 'minitems' => 1,
63 'appearance' => [
64 'collapseAll' => true,
65 'enabledControls' => [
66 'info' => false,
67 ],
68 ],
69 ],
70 ],
71 'errorHandling' => [
72 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.errorHandling',
73 'config' => [
74 'type' => 'inline',
75 'foreign_table' => 'site_errorhandling',
76 'appearance' => [
77 'collapseAll' => true,
78 'enabledControls' => [
79 'info' => false,
80 ],
81 ],
82 ],
83 ],
84 'routes' => [
85 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.routes',
86 'config' => [
87 'type' => 'inline',
88 'foreign_table' => 'site_route',
89 'appearance' => [
90 'collapseAll' => true,
91 'enabledControls' => [
92 'info' => false,
93 ],
94 ],
95 ],
96 ],
97 ],
98 'types' => [
99 '0' => [
100 'showitem' => 'identifier, rootPageId, base,baseVariants,
101 --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.languages, languages,
102 --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.errorHandling, errorHandling,
103 --div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.routes, routes',
104 ],
105 ],
106 ];