[!!!][BUGFIX] *_user table password field is to short
[Packages/TYPO3.CMS.git] / t3lib / stddb / tca_sys_file_reference.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 $TCA['sys_file_reference'] = array (
7 'ctrl' => $TCA['sys_file_reference']['ctrl'],
8 'interface' => array (
9 'showRecordFieldList' => 'hidden,uid_local,uid_foreign,tablenames,fieldname,sorting_foreign,table_local,title,description'
10 ),
11 'feInterface' => $TCA['sys_file_reference']['feInterface'],
12 'columns' => array (
13 'hidden' => array (
14 'exclude' => 1,
15 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
16 'config' => array (
17 'type' => 'check',
18 'default' => '0'
19 )
20 ),
21 'uid_local' => array (
22 'exclude' => 0,
23 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.uid_local',
24 'config' => array (
25 'type' => 'group',
26 'internal_type' => 'db',
27 'size' => 1,
28 'maxitems' => 1,
29 'minitems' => 0,
30 'allowed' => 'sys_file',
31 ),
32 ),
33 'uid_foreign' => array (
34 'exclude' => 0,
35 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.uid_foreign',
36 'config' => array (
37 'type' => 'select',
38 'items' => array (
39 array('',0),
40 ),
41 'foreign_table' => 'tt_content',
42 'foreign_table_where' => 'ORDER BY tt_content.uid',
43 'size' => 1,
44 'minitems' => 0,
45 'maxitems' => 1,
46 )
47 ),
48 'tablenames' => array (
49 'exclude' => 0,
50 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.tablenames',
51 'config' => array (
52 'type' => 'input',
53 'size' => '30',
54 'eval' => 'trim',
55 )
56 ),
57 'fieldname' => array (
58 'exclude' => 0,
59 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.fieldname',
60 'config' => array (
61 'type' => 'input',
62 'size' => '30',
63 )
64 ),
65 'sorting_foreign' => array (
66 'exclude' => 0,
67 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.sorting_foreign',
68 'config' => array (
69 'type' => 'input',
70 'size' => '4',
71 'max' => '4',
72 'eval' => 'int',
73 'checkbox' => '0',
74 'range' => array (
75 'upper' => '1000',
76 'lower' => '10'
77 ),
78 'default' => 0
79 )
80 ),
81 'table_local' => array (
82 'exclude' => 0,
83 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.table_local',
84 'config' => array (
85 'type' => 'input',
86 'size' => '20',
87 'default' => 'sys_file',
88 )
89 ),
90 'title' => array (
91 'exclude' => 0,
92 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.title',
93 'config' => array (
94 'type' => 'input',
95 'size' => '22',
96 'placeholder' => '__row|uid_local|name',
97 )
98 ),
99 'link' => array(
100 'exclude' => 1,
101 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.link',
102 'config' => array(
103 'type' => 'input',
104 'size' => '20',
105 'wizards' => array(
106 '_PADDING' => 2,
107 'link' => array(
108 'type' => 'popup',
109 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.link',
110 'icon' => 'link_popup.gif',
111 'script' => 'browse_links.php?mode=wizard',
112 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
113 ),
114 ),
115 ),
116 ),
117 'description' => array ( // This is used for captions in the frontend
118 'exclude' => 0,
119 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.description',
120 'config' => array (
121 'type' => 'text',
122 'cols' => '24',
123 'rows' => '5',
124 )
125 ),
126 'alternative' => array (
127 'exclude' => 0,
128 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.alternative',
129 'config' => array (
130 'type' => 'input',
131 'size' => '22',
132 'placeholder' => '__row|uid_local|name',
133 )
134 ),
135 ),
136 'types' => array (
137 // Note that at the moment we define the same fields for every media type.
138 // We leave the extensive definition of each type here anyway, to make clear that you can use it to differentiate between the types.
139 '0' => array(
140 'showitem' => '
141 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
142 --palette--;;filePalette',
143 ),
144 t3lib_file_File::FILETYPE_TEXT => array(
145 'showitem' => '
146 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
147 --palette--;;filePalette',
148 ),
149 t3lib_file_File::FILETYPE_IMAGE => array(
150 'showitem' => '
151 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
152 --palette--;;filePalette',
153 ),
154 t3lib_file_File::FILETYPE_AUDIO => array(
155 'showitem' => '
156 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
157 --palette--;;filePalette',
158 ),
159 t3lib_file_File::FILETYPE_VIDEO => array(
160 'showitem' => '
161 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
162 --palette--;;filePalette',
163 ),
164 t3lib_file_File::FILETYPE_SOFTWARE => array(
165 'showitem' => '
166 --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.basicoverlayPalette;basicoverlayPalette,
167 --palette--;;filePalette',
168 ),
169 ),
170 'palettes' => array(
171 // used for basic overlays: having a file list etc
172 'basicoverlayPalette' => array(
173 'showitem' => 'title,description',
174 'canNotCollapse' => TRUE,
175 ),
176
177 // used for everything that is an image (because it has a link and a alternative text)
178 'imageoverlayPalette' => array(
179 'showitem' => '
180 title,alternative;;;;3-3-3,--linebreak--,
181 link,description
182 ',
183 'canNotCollapse' => TRUE,
184 ),
185
186 // file palette, hidden but needs to be included all the time
187 'filePalette' => array(
188 'showitem' => 'uid_local',
189 'isHiddenPalette' => TRUE,
190 ),
191 )
192 );
193
194 ?>