[!!!][TASK] Drop additional palette handling
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_category.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category',
5 'label' => 'title',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'delete' => 'deleted',
10 'sortby' => 'sorting',
11 'versioningWS' => 2,
12 'rootLevel' => -1,
13 'versioning_followPages' => TRUE,
14 'origUid' => 't3_origuid',
15 'languageField' => 'sys_language_uid',
16 'transOrigPointerField' => 'l10n_parent',
17 'transOrigDiffSourceField' => 'l10n_diffsource',
18 'searchFields' => 'title,description',
19 'enablecolumns' => array(
20 'disabled' => 'hidden',
21 'starttime' => 'starttime',
22 'endtime' => 'endtime'
23 ),
24 'typeicon_classes' => array(
25 'default' => 'mimetypes-x-sys_category'
26 ),
27 'security' => array(
28 'ignoreRootLevelRestriction' => TRUE,
29 )
30 ),
31 'interface' => array(
32 'showRecordFieldList' => 'title,description'
33 ),
34 'types' => array(
35 '1' => array(
36 'showitem' => 'title, --palette--;;1, parent, description,
37 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.items, items,
38 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime',
39 ),
40 ),
41 'palettes' => array(
42 '1' => array('showitem' => 'sys_language_uid, l10n_parent, hidden')
43 ),
44 'columns' => array(
45 't3ver_label' => array(
46 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
47 'config' => array(
48 'type' => 'input',
49 'size' => '30',
50 'max' => '30'
51 )
52 ),
53 'sys_language_uid' => array(
54 'exclude' => 1,
55 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
56 'config' => array(
57 'type' => 'select',
58 'foreign_table' => 'sys_language',
59 'foreign_table_where' => 'ORDER BY sys_language.title',
60 'items' => array(
61 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
62 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
63 )
64 )
65 ),
66 'l10n_parent' => array(
67 'displayCond' => 'FIELD:sys_language_uid:>:0',
68 'exclude' => 1,
69 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
70 'config' => array(
71 'type' => 'select',
72 'items' => array(
73 array('', 0)
74 ),
75 'foreign_table' => 'sys_category',
76 'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)'
77 )
78 ),
79 'l10n_diffsource' => array(
80 'config' => array(
81 'type' => 'passthrough'
82 )
83 ),
84 'hidden' => array(
85 'exclude' => 1,
86 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
87 'config' => array(
88 'type' => 'check'
89 )
90 ),
91 'starttime' => array(
92 'exclude' => 1,
93 'l10n_mode' => 'mergeIfNotBlank',
94 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
95 'config' => array(
96 'type' => 'input',
97 'size' => '10',
98 'eval' => 'datetime',
99 'checkbox' => '0',
100 'default' => '0'
101 )
102 ),
103 'endtime' => array(
104 'exclude' => 1,
105 'l10n_mode' => 'mergeIfNotBlank',
106 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
107 'config' => array(
108 'type' => 'input',
109 'size' => '8',
110 'eval' => 'datetime',
111 'checkbox' => '0',
112 'default' => '0',
113 'range' => array(
114 'upper' => mktime(0, 0, 0, 1, 1, 2038),
115 )
116 )
117 ),
118 'title' => array(
119 'exclude' => 0,
120 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.title',
121 'config' => array(
122 'type' => 'input',
123 'width' => '200',
124 'eval' => 'trim,required'
125 )
126 ),
127 'description' => array(
128 'exclude' => 0,
129 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.description',
130 'config' => array(
131 'type' => 'text'
132 )
133 ),
134 'parent' => array(
135 'exclude' => 0,
136 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.parent',
137 'config' => array(
138 'minitems' => 0,
139 'maxitems' => 1,
140 'type' => 'select',
141 'renderMode' => 'tree',
142 'foreign_table' => 'sys_category',
143 'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
144 'treeConfig' => array(
145 'parentField' => 'parent',
146 'appearance' => array(
147 'expandAll' => TRUE,
148 'showHeader' => TRUE,
149 'maxLevels' => 99,
150 ),
151 )
152 )
153 ),
154 'items' => array(
155 'exclude' => 0,
156 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.items',
157 'config' => array(
158 'type' => 'group',
159 'internal_type' => 'db',
160 'allowed' => '*',
161 'MM' => 'sys_category_record_mm',
162 'MM_oppositeUsage' => array(),
163 'size' => 10,
164 'show_thumbs' => FALSE
165 )
166 )
167 )
168 );