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