[FEATURE] Introduce TCA > ctrl > descriptionColumn
[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:cms/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 )
66 ),
67 'l10n_parent' => array(
68 'displayCond' => 'FIELD:sys_language_uid:>:0',
69 'exclude' => 1,
70 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
71 'config' => array(
72 'type' => 'select',
73 'items' => array(
74 array('', 0)
75 ),
76 'foreign_table' => 'sys_category',
77 'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)'
78 )
79 ),
80 'l10n_diffsource' => array(
81 'config' => array(
82 'type' => 'passthrough'
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 'eval' => 'datetime',
100 'checkbox' => '0',
101 'default' => '0'
102 )
103 ),
104 'endtime' => array(
105 'exclude' => 1,
106 'l10n_mode' => 'mergeIfNotBlank',
107 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
108 'config' => array(
109 'type' => 'input',
110 'size' => '8',
111 'eval' => 'datetime',
112 'checkbox' => '0',
113 'default' => '0',
114 'range' => array(
115 'upper' => mktime(0, 0, 0, 1, 1, 2038),
116 )
117 )
118 ),
119 'title' => array(
120 'exclude' => 0,
121 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.title',
122 'config' => array(
123 'type' => 'input',
124 'width' => '200',
125 'eval' => 'trim,required'
126 )
127 ),
128 'description' => array(
129 'exclude' => 0,
130 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.description',
131 'config' => array(
132 'type' => 'text'
133 )
134 ),
135 'parent' => array(
136 'exclude' => 0,
137 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.parent',
138 'config' => array(
139 'minitems' => 0,
140 'maxitems' => 1,
141 'type' => 'select',
142 'renderMode' => 'tree',
143 'foreign_table' => 'sys_category',
144 'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
145 'treeConfig' => array(
146 'parentField' => 'parent',
147 'appearance' => array(
148 'expandAll' => TRUE,
149 'showHeader' => TRUE,
150 'maxLevels' => 99,
151 ),
152 )
153 )
154 ),
155 'items' => array(
156 'exclude' => 0,
157 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.items',
158 'config' => array(
159 'type' => 'group',
160 'internal_type' => 'db',
161 'allowed' => '*',
162 'MM' => 'sys_category_record_mm',
163 'MM_oppositeUsage' => array(),
164 'size' => 10,
165 'show_thumbs' => FALSE
166 )
167 )
168 )
169 );