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