[BUGFIX] Set correct file extensions in ['SYS']['mediafile_ext']
[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 'descriptionColumn' => 'description',
6 'label' => 'title',
7 'tstamp' => 'tstamp',
8 'crdate' => 'crdate',
9 'cruser_id' => 'cruser_id',
10 'delete' => 'deleted',
11 'sortby' => 'sorting',
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 'security' => array(
29 'ignoreRootLevelRestriction' => TRUE,
30 )
31 ),
32 'interface' => array(
33 'showRecordFieldList' => 'title,description'
34 ),
35 'types' => array(
36 '1' => array(
37 'showitem' => 'title, --palette--;;1, parent, description,
38 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.items, items,
39 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
40 ),
41 ),
42 'palettes' => array(
43 '1' => array('showitem' => 'sys_language_uid, l10n_parent, hidden')
44 ),
45 'columns' => array(
46 't3ver_label' => array(
47 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
48 'config' => array(
49 'type' => 'input',
50 'size' => '30',
51 'max' => '30'
52 )
53 ),
54 'sys_language_uid' => array(
55 'exclude' => 1,
56 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
57 'config' => array(
58 'type' => 'select',
59 'foreign_table' => 'sys_language',
60 'foreign_table_where' => 'ORDER BY sys_language.title',
61 'items' => array(
62 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
63 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
64 ),
65 'default' => 0
66 )
67 ),
68 'l10n_parent' => array(
69 'displayCond' => 'FIELD:sys_language_uid:>:0',
70 'exclude' => 1,
71 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
72 'config' => array(
73 'type' => 'select',
74 'items' => array(
75 array('', 0)
76 ),
77 'foreign_table' => 'sys_category',
78 'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)',
79 'default' => 0
80 )
81 ),
82 'l10n_diffsource' => array(
83 'config' => array(
84 'type' => 'passthrough',
85 'default' => ''
86 )
87 ),
88 'hidden' => array(
89 'exclude' => 1,
90 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
91 'config' => array(
92 'type' => 'check'
93 )
94 ),
95 'starttime' => array(
96 'exclude' => 1,
97 'l10n_mode' => 'mergeIfNotBlank',
98 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
99 'config' => array(
100 'type' => 'input',
101 'size' => '10',
102 'eval' => 'datetime',
103 'checkbox' => '0',
104 'default' => '0'
105 )
106 ),
107 'endtime' => array(
108 'exclude' => 1,
109 'l10n_mode' => 'mergeIfNotBlank',
110 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
111 'config' => array(
112 'type' => 'input',
113 'size' => '8',
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 'default' => '',
137 )
138 ),
139 'parent' => array(
140 'exclude' => 0,
141 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.parent',
142 'config' => array(
143 'minitems' => 0,
144 'maxitems' => 1,
145 'type' => 'select',
146 'renderMode' => 'tree',
147 'foreign_table' => 'sys_category',
148 'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
149 'treeConfig' => array(
150 'parentField' => 'parent',
151 'appearance' => array(
152 'expandAll' => TRUE,
153 'showHeader' => TRUE,
154 'maxLevels' => 99,
155 ),
156 ),
157 'default' => 0
158 )
159 ),
160 'items' => array(
161 'exclude' => 0,
162 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.items',
163 'config' => array(
164 'type' => 'group',
165 'internal_type' => 'db',
166 'allowed' => '*',
167 'MM' => 'sys_category_record_mm',
168 'MM_oppositeUsage' => array(),
169 'size' => 10,
170 'show_thumbs' => FALSE
171 )
172 )
173 )
174 );