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