[TASK] Merge submodule version into core
[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 '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 ),
28 'interface' => array(
29 'showRecordFieldList' => 'title,description'
30 ),
31 'types' => array(
32 '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')
33 ),
34 'palettes' => array(
35 '1' => array('showitem' => 'sys_language_uid, l10n_parent, hidden')
36 ),
37 'columns' => array(
38 't3ver_label' => array(
39 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
40 'config' => array(
41 'type' => 'input',
42 'size' => '30',
43 'max' => '30'
44 )
45 ),
46 'sys_language_uid' => array(
47 'exclude' => 1,
48 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
49 'config' => array(
50 'type' => 'select',
51 'foreign_table' => 'sys_language',
52 'foreign_table_where' => 'ORDER BY sys_language.title',
53 'items' => array(
54 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
55 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
56 )
57 )
58 ),
59 'l10n_parent' => array(
60 'displayCond' => 'FIELD:sys_language_uid:>:0',
61 'exclude' => 1,
62 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
63 'config' => array(
64 'type' => 'select',
65 'items' => array(
66 array('', 0)
67 ),
68 'foreign_table' => 'sys_category',
69 'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)'
70 )
71 ),
72 'l10n_diffsource' => array(
73 'config' => array(
74 'type' => 'passthrough'
75 )
76 ),
77 't3ver_label' => array(
78 'displayCond' => 'FIELD:t3ver_label:REQ:true',
79 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
80 'config' => array(
81 'type' => 'none',
82 'cols' => 27
83 )
84 ),
85 'hidden' => array(
86 'exclude' => 1,
87 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
88 'config' => array(
89 'type' => 'check'
90 )
91 ),
92 'starttime' => array(
93 'exclude' => 1,
94 'l10n_mode' => 'mergeIfNotBlank',
95 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
96 'config' => array(
97 'type' => 'input',
98 'size' => '10',
99 'max' => '20',
100 'eval' => 'datetime',
101 'checkbox' => '0',
102 'default' => '0'
103 )
104 ),
105 'endtime' => array(
106 'exclude' => 1,
107 'l10n_mode' => 'mergeIfNotBlank',
108 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
109 'config' => array(
110 'type' => 'input',
111 'size' => '8',
112 'max' => '20',
113 'eval' => 'datetime',
114 'checkbox' => '0',
115 'default' => '0',
116 'range' => array(
117 'upper' => mktime(0, 0, 0, 1, 1, 2038),
118 )
119 )
120 ),
121 'title' => array(
122 'exclude' => 0,
123 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.title',
124 'config' => array(
125 'type' => 'input',
126 'width' => '200',
127 'eval' => 'trim,required'
128 )
129 ),
130 'description' => array(
131 'exclude' => 0,
132 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.description',
133 'config' => array(
134 'type' => 'text'
135 )
136 ),
137 'parent' => array(
138 'exclude' => 0,
139 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.parent',
140 'config' => array(
141 'minitems' => 0,
142 'maxitems' => 1,
143 'type' => 'select',
144 'renderMode' => 'tree',
145 'foreign_table' => 'sys_category',
146 'foreign_table_where' => ' ORDER BY sys_category.title ASC',
147 'treeConfig' => array(
148 'parentField' => 'parent'
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 'show_thumbs' => FALSE
161 )
162 )
163 )
164 );
165 ?>