TYPO3 CMS  TYPO3_6-2
sys_collection.php
Go to the documentation of this file.
1 <?php
2 return array(
3  'ctrl' => array(
4  'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection',
5  'label' => 'title',
6  'tstamp' => 'tstamp',
7  'crdate' => 'crdate',
8  'cruser_id' => 'cruser_id',
9  'versioningWS' => TRUE,
10  'origUid' => 't3_origuid',
11  'languageField' => 'sys_language_uid',
12  'transOrigPointerField' => 'l10n_parent',
13  'transOrigDiffSourceField' => 'l10n_diffsource',
14  'default_sortby' => 'ORDER BY crdate',
15  'delete' => 'deleted',
16  'type' => 'type',
17  'rootLevel' => -1,
18  'searchFields' => 'title,description',
19  'typeicon_column' => 'type',
20  'typeicon_classes' => array(
21  'default' => 'apps-clipboard-list',
22  'static' => 'apps-clipboard-list',
23  'filter' => 'actions-system-tree-search-open'
24  ),
25  'enablecolumns' => array(
26  'disabled' => 'hidden',
27  'starttime' => 'starttime',
28  'endtime' => 'endtime',
29  'fe_group' => 'fe_group'
30  ),
31  ),
32  'interface' => array(
33  'showRecordFieldList' => 'title, description, table_name, items'
34  ),
35  'columns' => array(
36  't3ver_label' => array(
37  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
38  'config' => array(
39  'type' => 'input',
40  'size' => '30',
41  'max' => '30'
42  )
43  ),
44  'sys_language_uid' => array(
45  'exclude' => 1,
46  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
47  'config' => array(
48  'type' => 'select',
49  'foreign_table' => 'sys_language',
50  'foreign_table_where' => 'ORDER BY sys_language.title',
51  'items' => array(
52  array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
53  array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
54  )
55  )
56  ),
57  'l10n_parent' => array(
58  'displayCond' => 'FIELD:sys_language_uid:>:0',
59  'exclude' => 1,
60  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
61  'config' => array(
62  'type' => 'select',
63  'items' => array(
64  array('', 0)
65  ),
66  'foreign_table' => 'sys_file_collection',
67  'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
68  )
69  ),
70  'l10n_diffsource' => array(
71  'config' => array(
72  'type' => 'passthrough'
73  )
74  ),
75  'hidden' => array(
76  'exclude' => 1,
77  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
78  'config' => array(
79  'type' => 'check',
80  'default' => '0'
81  )
82  ),
83  'starttime' => array(
84  'exclude' => 1,
85  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
86  'config' => array(
87  'type' => 'input',
88  'size' => '8',
89  'max' => '20',
90  'eval' => 'date',
91  'default' => '0',
92  'checkbox' => '0'
93  )
94  ),
95  'endtime' => array(
96  'exclude' => 1,
97  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
98  'config' => array(
99  'type' => 'input',
100  'size' => '8',
101  'max' => '20',
102  'eval' => 'date',
103  'checkbox' => '0',
104  'default' => '0',
105  'range' => array(
106  'upper' => mktime(0, 0, 0, 1, 1, 2038),
107  )
108  )
109  ),
110  'fe_group' => array(
111  'exclude' => 1,
112  'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.fe_group',
113  'config' => array(
114  'type' => 'select',
115  'items' => array(
116  array('', 0),
117  array('LLL:EXT:lang/locallang_general.xlf:LGL.hide_at_login', -1),
118  array('LLL:EXT:lang/locallang_general.xlf:LGL.any_login', -2),
119  array('LLL:EXT:lang/locallang_general.xlf:LGL.usergroups', '--div--')
120  ),
121  'foreign_table' => 'fe_groups'
122  )
123  ),
124  'table_name' => array(
125  'exclude' => 0,
126  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.table_name',
127  'config' => array(
128  'type' => 'select',
129  'special' => 'tables'
130  )
131  ),
132  'items' => array(
133  'exclude' => 0,
134  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.items',
135  'config' => array(
136  'type' => 'group',
137  'internal_type' => 'db',
138  'prepend_tname' => TRUE,
139  'allowed' => '*',
140  'MM' => 'sys_collection_entries',
141  'MM_hasUidField' => TRUE,
142  'multiple' => TRUE,
143  'size' => 5
144  )
145  ),
146  'title' => array(
147  'exclude' => 0,
148  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.title',
149  'config' => array(
150  'type' => 'input',
151  'size' => '60',
152  'eval' => 'required'
153  )
154  ),
155  'description' => array(
156  'exclude' => 0,
157  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.description',
158  'config' => array(
159  'type' => 'text',
160  'cols' => '60',
161  'rows' => '5'
162  )
163  ),
164  'type' => array(
165  'exclude' => 0,
166  'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection.type',
167  'config' => array(
168  'type' => 'select',
169  'items' => array(
170  array('LLL:EXT:lang/locallang_tca.xlf:sys_collection.type.static', 'static')
171  ),
172  'default' => 'static'
173  )
174  )
175  ),
176  'types' => array(
177  'static' => array('showitem' => 'title;;1,type, description,table_name, items')
178  ),
179  'palettes' => array(
180  '1' => array('showitem' => 'starttime, endtime, fe_group, sys_language_uid, l10n_parent, l10n_diffsource, hidden')
181  )
182 );