[CLEANUP] Remove dividers2tabs functionality
[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('showitem' => 'title;;1, parent,description,--div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.items,items,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime')
36 ),
37 'palettes' => array(
38 '1' => array('showitem' => 'sys_language_uid, l10n_parent, hidden')
39 ),
40 'columns' => array(
41 't3ver_label' => array(
42 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
43 'config' => array(
44 'type' => 'input',
45 'size' => '30',
46 'max' => '30'
47 )
48 ),
49 'sys_language_uid' => array(
50 'exclude' => 1,
51 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
52 'config' => array(
53 'type' => 'select',
54 'foreign_table' => 'sys_language',
55 'foreign_table_where' => 'ORDER BY sys_language.title',
56 'items' => array(
57 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
58 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
59 )
60 )
61 ),
62 'l10n_parent' => array(
63 'displayCond' => 'FIELD:sys_language_uid:>:0',
64 'exclude' => 1,
65 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
66 'config' => array(
67 'type' => 'select',
68 'items' => array(
69 array('', 0)
70 ),
71 'foreign_table' => 'sys_category',
72 'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)'
73 )
74 ),
75 'l10n_diffsource' => array(
76 'config' => array(
77 'type' => 'passthrough'
78 )
79 ),
80 'hidden' => array(
81 'exclude' => 1,
82 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
83 'config' => array(
84 'type' => 'check'
85 )
86 ),
87 'starttime' => array(
88 'exclude' => 1,
89 'l10n_mode' => 'mergeIfNotBlank',
90 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
91 'config' => array(
92 'type' => 'input',
93 'size' => '10',
94 'max' => '20',
95 'eval' => 'datetime',
96 'checkbox' => '0',
97 'default' => '0'
98 )
99 ),
100 'endtime' => array(
101 'exclude' => 1,
102 'l10n_mode' => 'mergeIfNotBlank',
103 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
104 'config' => array(
105 'type' => 'input',
106 'size' => '8',
107 'max' => '20',
108 'eval' => 'datetime',
109 'checkbox' => '0',
110 'default' => '0',
111 'range' => array(
112 'upper' => mktime(0, 0, 0, 1, 1, 2038),
113 )
114 )
115 ),
116 'title' => array(
117 'exclude' => 0,
118 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.title',
119 'config' => array(
120 'type' => 'input',
121 'width' => '200',
122 'eval' => 'trim,required'
123 )
124 ),
125 'description' => array(
126 'exclude' => 0,
127 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.description',
128 'config' => array(
129 'type' => 'text'
130 )
131 ),
132 'parent' => array(
133 'exclude' => 0,
134 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.parent',
135 'config' => array(
136 'minitems' => 0,
137 'maxitems' => 1,
138 'type' => 'select',
139 'renderMode' => 'tree',
140 'foreign_table' => 'sys_category',
141 'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
142 'treeConfig' => array(
143 'parentField' => 'parent',
144 'appearance' => array(
145 'expandAll' => TRUE,
146 'showHeader' => TRUE,
147 'maxLevels' => 99,
148 ),
149 )
150 )
151 ),
152 'items' => array(
153 'exclude' => 0,
154 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.items',
155 'config' => array(
156 'type' => 'group',
157 'internal_type' => 'db',
158 'allowed' => '*',
159 'MM' => 'sys_category_record_mm',
160 'MM_oppositeUsage' => array(),
161 'size' => 10,
162 'show_thumbs' => FALSE
163 )
164 )
165 )
166 );