[BUGFIX] Sort direction indicator in list module incorrect
[Packages/TYPO3.CMS.git] / t3lib / stddb / tca_sys_file_collection.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 $TCA['sys_file_collection'] = array (
7 'ctrl' => $TCA['sys_file_collection']['ctrl'],
8 'interface' => array (
9 'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title'
10 ),
11 'feInterface' => $TCA['sys_file_collection']['feInterface'],
12 'columns' => array (
13 't3ver_label' => array (
14 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
15 'config' => array (
16 'type' => 'input',
17 'size' => '30',
18 'max' => '30',
19 )
20 ),
21 'sys_language_uid' => array (
22 'exclude' => 1,
23 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
24 'config' => array (
25 'type' => 'select',
26 'foreign_table' => 'sys_language',
27 'foreign_table_where' => 'ORDER BY sys_language.title',
28 'items' => array(
29 array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
30 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
31 )
32 )
33 ),
34 'l10n_parent' => array (
35 'displayCond' => 'FIELD:sys_language_uid:>:0',
36 'exclude' => 1,
37 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
38 'config' => array (
39 'type' => 'select',
40 'items' => array (
41 array('', 0),
42 ),
43 'foreign_table' => 'sys_file_collection',
44 'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)',
45 )
46 ),
47 'l10n_diffsource' => array (
48 'config' => array (
49 'type' => 'passthrough'
50 )
51 ),
52 'hidden' => array (
53 'exclude' => 1,
54 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
55 'config' => array (
56 'type' => 'check',
57 'default' => '0'
58 )
59 ),
60 'starttime' => array (
61 'exclude' => 1,
62 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
63 'config' => array (
64 'type' => 'input',
65 'size' => '8',
66 'max' => '20',
67 'eval' => 'date',
68 'default' => '0',
69 'checkbox' => '0'
70 )
71 ),
72 'endtime' => array (
73 'exclude' => 1,
74 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
75 'config' => array (
76 'type' => 'input',
77 'size' => '8',
78 'max' => '20',
79 'eval' => 'date',
80 'checkbox' => '0',
81 'default' => '0',
82 'range' => array (
83 'upper' => mktime(3, 14, 7, 1, 19, 2038),
84 'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))
85 )
86 )
87 ),
88 'type' => array (
89 'exclude' => 0,
90 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type',
91 'config' => array (
92 'type' => 'select',
93 'items' => array(
94 array('Static selection of files', 'static'),
95 array('Folder from Storage', 'folder'),
96 ),
97 )
98 ),
99 'files' => array (
100 'exclude' => 0,
101 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.files',
102 'config' => t3lib_extMgm::getFileFieldTCAConfig('files'),
103 ),
104 'title' => array (
105 'exclude' => 0,
106 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.title',
107 'config' => array (
108 'type' => 'input',
109 'size' => '30',
110 'eval' => 'required'
111 )
112 ),
113 'storage' => array (
114 'exclude' => 0,
115 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.storage',
116 'config' => array (
117 'type' => 'select',
118 'items' => array (
119 array('',0),
120 ),
121 'foreign_table' => 'sys_file_storage',
122 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
123 'size' => 1,
124 'minitems' => 0,
125 'maxitems' => 1,
126 )
127 ),
128 'folder' => array (
129 'exclude' => 0,
130 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.folder',
131 'config' => array(
132 'type' => 'select',
133 'items' => array(),
134 'itemsProcFunc' => 't3lib/file/Service/UserfilemountService.php:t3lib_file_Service_UserfilemountService->renderTceformsSelectDropdown'
135 )
136 ),
137 ),
138 'types' => array (
139 '0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
140 'static' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
141 'folder' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, storage, folder'),
142 ),
143 'palettes' => array (
144 '1' => array('showitem' => 'hidden, starttime, endtime')
145 )
146 );
147
148 ?>