[TASK] Cleanup TCA select field configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Configuration / TCA / sys_domain.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'domainName',
5 'tstamp' => 'tstamp',
6 'crdate' => 'crdate',
7 'cruser_id' => 'cruser_id',
8 'sortby' => 'sorting',
9 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain',
10 'iconfile' => 'tcarecords-sys_domain-default',
11 'enablecolumns' => array(
12 'disabled' => 'hidden'
13 ),
14 'typeicon_classes' => array(
15 'default' => 'mimetypes-x-content-domain'
16 ),
17 'searchFields' => 'domainName,redirectTo'
18 ),
19 'interface' => array(
20 'showRecordFieldList' => 'hidden,domainName,redirectTo'
21 ),
22 'columns' => array(
23 'domainName' => array(
24 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain.domainName',
25 'config' => array(
26 'type' => 'input',
27 'size' => '35',
28 'max' => '80',
29 'eval' => 'required,unique,lower,trim,domainname',
30 'softref' => 'substitute'
31 )
32 ),
33 'redirectTo' => array(
34 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain.redirectTo',
35 'config' => array(
36 'type' => 'input',
37 'size' => '35',
38 'max' => '255',
39 'default' => '',
40 'eval' => 'trim',
41 'softref' => 'substitute'
42 )
43 ),
44 'redirectHttpStatusCode' => array(
45 'exclude' => 1,
46 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain.redirectHttpStatusCode',
47 'config' => array(
48 'type' => 'select',
49 'renderType' => 'selectSingle',
50 'items' => array(
51 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain.redirectHttpStatusCode.301', '301'),
52 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain.redirectHttpStatusCode.302', '302'),
53 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain.redirectHttpStatusCode.303', '303'),
54 array('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain.redirectHttpStatusCode.307', '307')
55 ),
56 'size' => 1,
57 'maxitems' => 1
58 )
59 ),
60 'hidden' => array(
61 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
62 'exclude' => 1,
63 'config' => array(
64 'type' => 'check',
65 'default' => '0'
66 )
67 ),
68 'prepend_params' => array(
69 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain.prepend_params',
70 'exclude' => 1,
71 'config' => array(
72 'type' => 'check',
73 'default' => '0'
74 )
75 ),
76 'forced' => array(
77 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_domain.forced',
78 'exclude' => 1,
79 'config' => array(
80 'type' => 'check',
81 'default' => '0'
82 )
83 )
84 ),
85 'types' => array(
86 '1' => array(
87 'showitem' => 'hidden, domainName, --palette--;;1, prepend_params, forced',
88 ),
89 ),
90 'palettes' => array(
91 '1' => array(
92 'showitem' => 'redirectTo, redirectHttpStatusCode',
93 ),
94 )
95 );