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