[FEATURE] Allow multiple domain variants per site
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / SiteConfiguration / site_base_variant.php
1 <?php
2
3 return [
4 'ctrl' => [
5 'label' => 'base',
6 'label_alt' => 'condition',
7 'label_alt_force' => true,
8 'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.ctrl.title',
9 'typeicon_classes' => [
10 'default' => 'mimetypes-x-content-domain',
11 ],
12 ],
13 'columns' => [
14 'base' => [
15 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.base',
16 'config' => [
17 'type' => 'input',
18 'eval' => 'required',
19 ],
20 ],
21 'condition' => [
22 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition',
23 'config' => [
24 'type' => 'input',
25 'eval' => 'required',
26 'valuePicker' => [
27 'items' => [
28 [ 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.applicationContext', 'applicationContext == "Production"'],
29 [ 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.environmentVariable', 'getenv("mycontext") == "production"'],
30 ],
31 ],
32 ],
33 ],
34 ],
35 'types' => [
36 '1' => [
37 'showitem' => 'base,condition',
38 ],
39 ],
40 ];