[FEATURE] Add TCA autocomplete setting for input fields
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Configuration / TCA / fe_users.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'username',
5 'default_sortby' => 'ORDER BY username',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'fe_cruser_id' => 'fe_cruser_id',
10 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users',
11 'delete' => 'deleted',
12 'enablecolumns' => array(
13 'disabled' => 'disable',
14 'starttime' => 'starttime',
15 'endtime' => 'endtime'
16 ),
17 'typeicon_classes' => array(
18 'default' => 'status-user-frontend'
19 ),
20 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
21 'searchFields' => 'username,name,first_name,last_name,middle_name,address,telephone,fax,email,title,zip,city,country,company'
22 ),
23 'interface' => array(
24 'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,first_name,middle_name,last_name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin'
25 ),
26 'columns' => array(
27 'username' => array(
28 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.username',
29 'config' => array(
30 'type' => 'input',
31 'size' => '20',
32 'max' => '255',
33 'eval' => 'nospace,trim,lower,uniqueInPid,required',
34 'autocomplete' => FALSE,
35 )
36 ),
37 'password' => array(
38 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.password',
39 'config' => array(
40 'type' => 'input',
41 'size' => '10',
42 'max' => '40',
43 'eval' => 'nospace,trim,required,password',
44 'autocomplete' => FALSE,
45 )
46 ),
47 'usergroup' => array(
48 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.usergroup',
49 'config' => array(
50 'type' => 'select',
51 'renterType' => 'selectMultipleSideBySide',
52 'foreign_table' => 'fe_groups',
53 'foreign_table_where' => 'ORDER BY fe_groups.title',
54 'enableMultiSelectFilterTextfield' => TRUE,
55 'size' => '6',
56 'minitems' => '1',
57 'maxitems' => '50'
58 )
59 ),
60 'lockToDomain' => array(
61 'exclude' => 1,
62 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.lockToDomain',
63 'config' => array(
64 'type' => 'input',
65 'size' => '20',
66 'eval' => 'trim',
67 'max' => '50',
68 'softref' => 'substitute'
69 )
70 ),
71 'name' => array(
72 'exclude' => 1,
73 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
74 'config' => array(
75 'type' => 'input',
76 'size' => '40',
77 'eval' => 'trim',
78 'max' => '80'
79 )
80 ),
81 'first_name' => array(
82 'exclude' => 1,
83 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.first_name',
84 'config' => array(
85 'type' => 'input',
86 'size' => '25',
87 'eval' => 'trim',
88 'max' => '50'
89 )
90 ),
91 'middle_name' => array(
92 'exclude' => 1,
93 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.middle_name',
94 'config' => array(
95 'type' => 'input',
96 'size' => '25',
97 'eval' => 'trim',
98 'max' => '50'
99 )
100 ),
101 'last_name' => array(
102 'exclude' => 1,
103 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.last_name',
104 'config' => array(
105 'type' => 'input',
106 'size' => '25',
107 'eval' => 'trim',
108 'max' => '50'
109 )
110 ),
111 'address' => array(
112 'exclude' => 1,
113 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.address',
114 'config' => array(
115 'type' => 'text',
116 'cols' => '20',
117 'rows' => '3'
118 )
119 ),
120 'telephone' => array(
121 'exclude' => 1,
122 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.phone',
123 'config' => array(
124 'type' => 'input',
125 'eval' => 'trim',
126 'size' => '20',
127 'max' => '20'
128 )
129 ),
130 'fax' => array(
131 'exclude' => 1,
132 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.fax',
133 'config' => array(
134 'type' => 'input',
135 'size' => '20',
136 'eval' => 'trim',
137 'max' => '20'
138 )
139 ),
140 'email' => array(
141 'exclude' => 1,
142 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.email',
143 'config' => array(
144 'type' => 'input',
145 'size' => '20',
146 'eval' => 'trim',
147 'max' => '255'
148 )
149 ),
150 'title' => array(
151 'exclude' => 1,
152 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.title_person',
153 'config' => array(
154 'type' => 'input',
155 'size' => '20',
156 'eval' => 'trim',
157 'max' => '40'
158 )
159 ),
160 'zip' => array(
161 'exclude' => 1,
162 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.zip',
163 'config' => array(
164 'type' => 'input',
165 'eval' => 'trim',
166 'size' => '10',
167 'max' => '10'
168 )
169 ),
170 'city' => array(
171 'exclude' => 1,
172 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.city',
173 'config' => array(
174 'type' => 'input',
175 'size' => '20',
176 'eval' => 'trim',
177 'max' => '50'
178 )
179 ),
180 'country' => array(
181 'exclude' => 1,
182 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.country',
183 'config' => array(
184 'type' => 'input',
185 'size' => '20',
186 'eval' => 'trim',
187 'max' => '40'
188 )
189 ),
190 'www' => array(
191 'exclude' => 1,
192 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.www',
193 'config' => array(
194 'type' => 'input',
195 'eval' => 'trim',
196 'size' => '20',
197 'max' => '80'
198 )
199 ),
200 'company' => array(
201 'exclude' => 1,
202 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.company',
203 'config' => array(
204 'type' => 'input',
205 'eval' => 'trim',
206 'size' => '20',
207 'max' => '80'
208 )
209 ),
210 'image' => array(
211 'exclude' => 1,
212 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.image',
213 'config' => array(
214 'type' => 'group',
215 'internal_type' => 'file',
216 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
217 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
218 'uploadfolder' => 'uploads/pics',
219 'show_thumbs' => '1',
220 'size' => '3',
221 'maxitems' => '6',
222 'minitems' => '0'
223 )
224 ),
225 'disable' => array(
226 'exclude' => 1,
227 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
228 'config' => array(
229 'type' => 'check'
230 )
231 ),
232 'starttime' => array(
233 'exclude' => 1,
234 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
235 'config' => array(
236 'type' => 'input',
237 'size' => '13',
238 'eval' => 'datetime',
239 'default' => '0'
240 )
241 ),
242 'endtime' => array(
243 'exclude' => 1,
244 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
245 'config' => array(
246 'type' => 'input',
247 'size' => '13',
248 'eval' => 'datetime',
249 'default' => '0',
250 'range' => array(
251 'upper' => mktime(0, 0, 0, 12, 31, 2020)
252 )
253 )
254 ),
255 'TSconfig' => array(
256 'exclude' => 1,
257 'label' => 'TSconfig:',
258 'config' => array(
259 'type' => 'text',
260 'cols' => '40',
261 'rows' => '10',
262 'softref' => 'TSconfig'
263 ),
264 'defaultExtras' => 'fixed-font : enable-tab'
265 ),
266 'lastlogin' => array(
267 'exclude' => 1,
268 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.lastlogin',
269 'config' => array(
270 'type' => 'input',
271 'readOnly' => '1',
272 'size' => '12',
273 'eval' => 'datetime',
274 'default' => 0
275 )
276 )
277 ),
278 'types' => array(
279 '0' => array(
280 'showitem' => '
281 disable, username, password, usergroup, lastlogin,
282 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.personelData, company, --palette--;;1, name, --palette--;;2, address, zip, city, country, telephone, fax, email, www, image,
283 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.options, lockToDomain, TSconfig,
284 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.access, starttime, endtime,
285 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.extended
286 ',
287 ),
288 ),
289 'palettes' => array(
290 '1' => array('showitem' => 'title'),
291 '2' => array('showitem' => 'first_name,--linebreak--,middle_name,--linebreak--,last_name')
292 )
293 );