Revert "[TASK] Move t3lib/stddb files to ext:core"
[Packages/TYPO3.CMS.git] / t3lib / stddb / tca_sys_category.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 $TCA['sys_category'] = array(
6 'ctrl' => $TCA['sys_category']['ctrl'],
7 'interface' => array(
8 'showRecordFieldList' => 'title,description'
9 ),
10 'types' => array(
11 '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')
12 ),
13 'palettes' => array(
14 '1' => array('showitem' => 'sys_language_uid, l10n_parent, hidden')
15 ),
16 'columns' => array(
17 't3ver_label' => array(
18 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
19 'config' => array(
20 'type' => 'input',
21 'size' => '30',
22 'max' => '30'
23 )
24 ),
25 'sys_language_uid' => array(
26 'exclude' => 1,
27 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
28 'config' => array(
29 'type' => 'select',
30 'foreign_table' => 'sys_language',
31 'foreign_table_where' => 'ORDER BY sys_language.title',
32 'items' => array(
33 array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages', -1),
34 array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0)
35 )
36 )
37 ),
38 'l10n_parent' => array(
39 'displayCond' => 'FIELD:sys_language_uid:>:0',
40 'exclude' => 1,
41 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',
42 'config' => array(
43 'type' => 'select',
44 'items' => array(
45 array('', 0)
46 ),
47 'foreign_table' => 'sys_category',
48 'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)'
49 )
50 ),
51 'l10n_diffsource' => array(
52 'config' => array(
53 'type' => 'passthrough'
54 )
55 ),
56 't3ver_label' => array(
57 'displayCond' => 'FIELD:t3ver_label:REQ:true',
58 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
59 'config' => array(
60 'type' => 'none',
61 'cols' => 27
62 )
63 ),
64 'hidden' => array(
65 'exclude' => 1,
66 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
67 'config' => array(
68 'type' => 'check'
69 )
70 ),
71 'starttime' => array(
72 'exclude' => 1,
73 'l10n_mode' => 'mergeIfNotBlank',
74 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
75 'config' => array(
76 'type' => 'input',
77 'size' => '10',
78 'max' => '20',
79 'eval' => 'datetime',
80 'checkbox' => '0',
81 'default' => '0'
82 )
83 ),
84 'endtime' => array(
85 'exclude' => 1,
86 'l10n_mode' => 'mergeIfNotBlank',
87 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
88 'config' => array(
89 'type' => 'input',
90 'size' => '8',
91 'max' => '20',
92 'eval' => 'datetime',
93 'checkbox' => '0',
94 'default' => '0',
95 'range' => array(
96 'upper' => mktime(0, 0, 0, 12, 31, date('Y') + 10),
97 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
98 )
99 )
100 ),
101 'title' => array(
102 'exclude' => 0,
103 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.title',
104 'config' => array(
105 'type' => 'input',
106 'width' => '200',
107 'eval' => 'trim,required'
108 )
109 ),
110 'description' => array(
111 'exclude' => 0,
112 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.description',
113 'config' => array(
114 'type' => 'text'
115 )
116 ),
117 'parent' => array(
118 'exclude' => 0,
119 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.parent',
120 'config' => array(
121 'minitems' => 0,
122 'maxitems' => 1,
123 'type' => 'select',
124 'renderMode' => 'tree',
125 'foreign_table' => 'sys_category',
126 'foreign_table_where' => ' ORDER BY sys_category.title ASC',
127 'treeConfig' => array(
128 'parentField' => 'parent'
129 )
130 )
131 ),
132 'items' => array(
133 'exclude' => 0,
134 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.items',
135 'config' => array(
136 'type' => 'group',
137 'internal_type' => 'db',
138 'allowed' => '*',
139 'MM' => 'sys_category_record_mm',
140 'show_thumbs' => FALSE
141 )
142 )
143 )
144 );
145 ?>