Documentation TYPO3 par Ameos |
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com) 00006 * All rights reserved 00007 * 00008 * This script is part of the TYPO3 project. The TYPO3 project is 00009 * free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * The GNU General Public License can be found at 00015 * http://www.gnu.org/copyleft/gpl.html. 00016 * A copy is found in the textfile GPL.txt and important notices to the license 00017 * from the author is found in LICENSE.txt distributed with these scripts. 00018 * 00019 * 00020 * This script is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 * GNU General Public License for more details. 00024 * 00025 * This copyright notice MUST APPEAR in all copies of the script! 00026 ***************************************************************/ 00045 $TCA['be_users'] = Array ( 00046 'ctrl' => $TCA['be_users']['ctrl'], 00047 'interface' => Array ( 00048 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,fileoper_perms,userMods,lockToDomain,realName,email,disable,starttime,endtime' 00049 ), 00050 'columns' => Array ( 00051 'username' => Array ( 00052 'label' => 'Username:', 00053 'config' => Array ( 00054 'type' => 'input', 00055 'size' => '20', 00056 'max' => '50', 00057 'eval' => 'nospace,lower,unique,required' 00058 ) 00059 ), 00060 'password' => Array ( 00061 'label' => 'Password:', 00062 'config' => Array ( 00063 'type' => 'input', 00064 'size' => '20', 00065 'max' => '40', 00066 'eval' => 'required,md5,password' 00067 ) 00068 ), 00069 'usergroup' => Array ( 00070 'label' => 'Group:', 00071 'config' => Array ( 00072 'type' => 'select', 00073 'foreign_table' => 'be_groups', 00074 'foreign_table_where' => 'ORDER BY be_groups.title', 00075 'size' => '5', 00076 'maxitems' => '20', 00077 # 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00078 'iconsInOptionTags' => 1, 00079 'wizards' => Array( 00080 '_PADDING' => 1, 00081 '_VERTICAL' => 1, 00082 'edit' => Array( 00083 'type' => 'popup', 00084 'title' => 'Edit usergroup', 00085 'script' => 'wizard_edit.php', 00086 'popup_onlyOpenIfSelected' => 1, 00087 'icon' => 'edit2.gif', 00088 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1', 00089 ), 00090 'add' => Array( 00091 'type' => 'script', 00092 'title' => 'Create new group', 00093 'icon' => 'add.gif', 00094 'params' => Array( 00095 'table'=>'be_groups', 00096 'pid' => '0', 00097 'setValue' => 'prepend' 00098 ), 00099 'script' => 'wizard_add.php', 00100 ), 00101 'list' => Array( 00102 'type' => 'script', 00103 'title' => 'List groups', 00104 'icon' => 'list.gif', 00105 'params' => Array( 00106 'table'=>'be_groups', 00107 'pid' => '0', 00108 ), 00109 'script' => 'wizard_list.php', 00110 ) 00111 ) 00112 ) 00113 ), 00114 'lockToDomain' => Array ( 00115 'label' => 'Lock to domain:', 00116 'config' => Array ( 00117 'type' => 'input', 00118 'size' => '20', 00119 'eval' => 'trim', 00120 'max' => '50', 00121 'checkbox' => '', 00122 'softref' => 'substitute' 00123 ) 00124 ), 00125 'db_mountpoints' => Array ( 00126 'label' => 'DB Mounts:', 00127 'config' => Array ( 00128 'type' => 'group', 00129 'internal_type' => 'db', 00130 'allowed' => 'pages', 00131 'size' => '3', 00132 'maxitems' => '10', 00133 'autoSizeMax' => 10, 00134 'show_thumbs' => '1' 00135 ) 00136 ), 00137 'file_mountpoints' => Array ( 00138 'label' => 'File Mounts:', 00139 'config' => Array ( 00140 'type' => 'select', 00141 'foreign_table' => 'sys_filemounts', 00142 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title', 00143 'size' => '3', 00144 'maxitems' => '10', 00145 'autoSizeMax' => 10, 00146 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00147 'iconsInOptionTags' => 1, 00148 'wizards' => Array( 00149 '_PADDING' => 1, 00150 '_VERTICAL' => 1, 00151 'edit' => Array( 00152 'type' => 'popup', 00153 'title' => 'Edit filemount', 00154 'script' => 'wizard_edit.php', 00155 'icon' => 'edit2.gif', 00156 'popup_onlyOpenIfSelected' => 1, 00157 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1', 00158 ), 00159 'add' => Array( 00160 'type' => 'script', 00161 'title' => 'Create new filemount', 00162 'icon' => 'add.gif', 00163 'params' => Array( 00164 'table'=>'sys_filemounts', 00165 'pid' => '0', 00166 'setValue' => 'prepend' 00167 ), 00168 'script' => 'wizard_add.php', 00169 ), 00170 'list' => Array( 00171 'type' => 'script', 00172 'title' => 'List filemounts', 00173 'icon' => 'list.gif', 00174 'params' => Array( 00175 'table'=>'sys_filemounts', 00176 'pid' => '0', 00177 ), 00178 'script' => 'wizard_list.php', 00179 ) 00180 ) 00181 ) 00182 ), 00183 'email' => Array ( 00184 'label' => 'Email:', 00185 'config' => Array ( 00186 'type' => 'input', 00187 'size' => '20', 00188 'eval' => 'trim', 00189 'max' => '80', 00190 'softref' => 'email[subst]' 00191 ) 00192 ), 00193 'realName' => Array ( 00194 'label' => 'Name:', 00195 'config' => Array ( 00196 'type' => 'input', 00197 'size' => '20', 00198 'eval' => 'trim', 00199 'max' => '80' 00200 ) 00201 ), 00202 'disable' => Array ( 00203 'label' => 'Disable:', 00204 'config' => Array ( 00205 'type' => 'check' 00206 ) 00207 ), 00208 'disableIPlock' => Array ( 00209 'label' => 'Disable IP lock for user:', 00210 'config' => Array ( 00211 'type' => 'check' 00212 ) 00213 ), 00214 'admin' => Array ( 00215 'label' => 'Admin(!):', 00216 'config' => Array ( 00217 'type' => 'check', 00218 'default' => '0' 00219 ) 00220 ), 00221 'options' => Array ( 00222 'label' => 'Mount from groups:', 00223 'config' => Array ( 00224 'type' => 'check', 00225 'items' => Array ( 00226 Array('DB Mounts', 0), 00227 Array('File Mounts', 0) 00228 ), 00229 'default' => '3' 00230 ) 00231 ), 00232 'fileoper_perms' => Array ( 00233 'label' => 'Fileoperation permissions:', 00234 'config' => Array ( 00235 'type' => 'check', 00236 'items' => Array ( 00237 Array('Files: Upload,Copy,Move,Delete,Rename,New,Edit', 0), 00238 Array('Files: Unzip', 0), 00239 Array('Directory: Move,Delete,Rename,New', 0), 00240 Array('Directory: Copy', 0), 00241 Array('Directory: Delete recursively (rm -Rf)', 0) 00242 ), 00243 'default' => '7' 00244 ) 00245 ), 00246 'workspace_perms' => Array ( 00247 'label' => 'Workspace permissions:', 00248 'config' => Array ( 00249 'type' => 'check', 00250 'items' => Array ( 00251 Array('Edit Live (Online)', 0), 00252 Array('Edit Draft (Offline)', 0), 00253 Array('Create new workspace projects', 0), 00254 ), 00255 'default' => 3 00256 ) 00257 ), 00258 'starttime' => Array ( 00259 'label' => 'Start:', 00260 'config' => Array ( 00261 'type' => 'input', 00262 'size' => '8', 00263 'max' => '20', 00264 'eval' => 'date', 00265 'default' => '0', 00266 'checkbox' => '0' 00267 ) 00268 ), 00269 'endtime' => Array ( 00270 'label' => 'Stop:', 00271 'config' => Array ( 00272 'type' => 'input', 00273 'size' => '8', 00274 'max' => '20', 00275 'eval' => 'date', 00276 'checkbox' => '0', 00277 'default' => '0', 00278 'range' => Array ( 00279 'upper' => mktime(0,0,0,12,31,2020), 00280 ) 00281 ) 00282 ), 00283 'lang' => Array ( 00284 'label' => 'Default Language:', 00285 'config' => Array ( 00286 'type' => 'select', 00287 'items' => Array ( 00288 Array('English', ''), 00289 Array('Arabic', 'ar'), 00290 Array('Basque', 'eu'), 00291 Array('Bosnian', 'ba'), 00292 Array('Brazilian Portuguese', 'br'), 00293 Array('Bulgarian', 'bg'), 00294 Array('Catalan', 'ca'), 00295 Array('Chinese (Simpl.)', 'ch'), 00296 Array('Chinese (Trad.)', 'hk'), 00297 Array('Croatian', 'hr'), 00298 Array('Czech', 'cz'), 00299 Array('Danish', 'dk'), 00300 Array('Dutch', 'nl'), 00301 Array('Esperanto', 'eo'), 00302 Array('Estonian', 'et'), 00303 Array('Faroese', 'fo'), 00304 Array('Finnish', 'fi'), 00305 Array('French', 'fr'), 00306 Array('German', 'de'), 00307 Array('Greek', 'gr'), 00308 Array('Greenlandic', 'gl'), 00309 Array('Hebrew', 'he'), 00310 Array('Hindi', 'hi'), 00311 Array('Hungarian', 'hu'), 00312 Array('Icelandic', 'is'), 00313 Array('Italian', 'it'), 00314 Array('Japanese', 'jp'), 00315 Array('Korean', 'kr'), 00316 Array('Latvian', 'lv'), 00317 Array('Lithuanian', 'lt'), 00318 Array('Malay', 'my'), 00319 Array('Norwegian', 'no'), 00320 Array('Persian', 'fa'), 00321 Array('Polish', 'pl'), 00322 Array('Portuguese', 'pt'), 00323 Array('Romanian', 'ro'), 00324 Array('Russian', 'ru'), 00325 Array('Serbian', 'sr'), 00326 Array('Slovak', 'sk'), 00327 Array('Slovenian', 'si'), 00328 Array('Spanish', 'es'), 00329 Array('Swedish', 'se'), 00330 Array('Thai', 'th'), 00331 Array('Turkish', 'tr'), 00332 Array('Ukrainian', 'ua'), 00333 Array('Vietnamese', 'vn'), 00334 ) 00335 ) 00336 ), 00337 'userMods' => Array ( 00338 'label' => 'Modules:', 00339 'config' => Array ( 00340 'type' => 'select', 00341 'special' => 'modListUser', 00342 'size' => '5', 00343 'autoSizeMax' => 50, 00344 'maxitems' => '100', 00345 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00346 'iconsInOptionTags' => 1, 00347 ) 00348 ), 00349 'allowed_languages' => Array ( 00350 'label' => 'Limit to languages:', 00351 'config' => Array ( 00352 'type' => 'select', 00353 'special' => 'languages', 00354 'maxitems' => '1000', 00355 'renderMode' => 'checkbox', 00356 ) 00357 ), 00358 'TSconfig' => Array ( 00359 'label' => 'TSconfig:', 00360 'config' => Array ( 00361 'type' => 'text', 00362 'cols' => '40', 00363 'rows' => '5', 00364 'wizards' => Array( 00365 '_PADDING' => 4, 00366 '0' => Array( 00367 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'', 00368 'title' => 'TSconfig QuickReference', 00369 'script' => 'wizard_tsconfig.php?mode=beuser', 00370 'icon' => 'wizard_tsconfig.gif', 00371 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1', 00372 ) 00373 ), 00374 'softref' => 'TSconfig' 00375 ), 00376 'defaultExtras' => 'fixed-font : enable-tab', 00377 ), 00378 'createdByAction' => Array('config'=>array('type'=>'passthrough')) 00379 ), 00380 'types' => Array ( 00381 '0' => Array('showitem' => 'username;;;;2-2-2, password, usergroup, lockToDomain, disableIPlock, admin;;;;5-5-5, realName;;;;3-3-3, email, lang, userMods;;;;4-4-4, allowed_languages, workspace_perms, options, db_mountpoints, file_mountpoints, fileoper_perms, --div--, TSconfig;;;;5-5-5'), 00382 '1' => Array('showitem' => 'username;;;;2-2-2, password, usergroup, disableIPlock, admin;;;;5-5-5, realName;;;;3-3-3, email, lang, options;;;;4-4-4, db_mountpoints, file_mountpoints, fileoper_perms, --div--, TSconfig;;;;5-5-5') 00383 ), 00384 'palettes' => Array ( 00385 '1' => Array('showitem' => 'disable, starttime, endtime') 00386 ) 00387 ); 00388 00389 00390 00394 $TCA['be_groups'] = Array ( 00395 'ctrl' => $TCA['be_groups']['ctrl'], 00396 'interface' => Array ( 00397 'showRecordFieldList' => 'title,db_mountpoints,file_mountpoints,inc_access_lists,tables_select,tables_modify,pagetypes_select,non_exclude_fields,groupMods,lockToDomain,description' 00398 ), 00399 'columns' => Array ( 00400 'title' => Array ( 00401 'label' => 'Grouptitle:', 00402 'config' => Array ( 00403 'type' => 'input', 00404 'size' => '25', 00405 'max' => '50', 00406 'eval' => 'trim,required' 00407 ) 00408 ), 00409 'db_mountpoints' => Array ( 00410 'label' => 'DB Mounts:', 00411 'config' => Array ( 00412 'type' => 'group', 00413 'internal_type' => 'db', 00414 'allowed' => 'pages', 00415 'size' => '3', 00416 'maxitems' => 20, 00417 'autoSizeMax' => 10, 00418 'show_thumbs' => '1' 00419 ) 00420 ), 00421 'file_mountpoints' => Array ( 00422 'label' => 'File Mounts:', 00423 'config' => Array ( 00424 'type' => 'select', 00425 'foreign_table' => 'sys_filemounts', 00426 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title', 00427 'size' => '3', 00428 'maxitems' => 20, 00429 'autoSizeMax' => 10, 00430 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00431 'iconsInOptionTags' => 1, 00432 'wizards' => Array( 00433 '_PADDING' => 1, 00434 '_VERTICAL' => 1, 00435 'edit' => Array( 00436 'type' => 'popup', 00437 'title' => 'Edit filemount', 00438 'script' => 'wizard_edit.php', 00439 'popup_onlyOpenIfSelected' => 1, 00440 'icon' => 'edit2.gif', 00441 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1', 00442 ), 00443 'add' => Array( 00444 'type' => 'script', 00445 'title' => 'Create new filemount', 00446 'icon' => 'add.gif', 00447 'params' => Array( 00448 'table'=>'sys_filemounts', 00449 'pid' => '0', 00450 'setValue' => 'prepend' 00451 ), 00452 'script' => 'wizard_add.php', 00453 ), 00454 'list' => Array( 00455 'type' => 'script', 00456 'title' => 'List filemounts', 00457 'icon' => 'list.gif', 00458 'params' => Array( 00459 'table'=>'sys_filemounts', 00460 'pid' => '0', 00461 ), 00462 'script' => 'wizard_list.php', 00463 ) 00464 ) 00465 ) 00466 ), 00467 'workspace_perms' => Array ( 00468 'label' => 'Workspace permissions:', 00469 'config' => Array ( 00470 'type' => 'check', 00471 'items' => Array ( 00472 Array('Edit Live (Online)', 0), 00473 Array('Edit Draft (Offline)', 0), 00474 Array('Create new workspace projects', 0), 00475 ), 00476 'default' => 0 00477 ) 00478 ), 00479 'pagetypes_select' => Array ( 00480 'label' => 'Page types:', 00481 'config' => Array ( 00482 'type' => 'select', 00483 'special' => 'pagetypes', 00484 'size' => '5', 00485 'autoSizeMax' => 50, 00486 'maxitems' => 20, 00487 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00488 'iconsInOptionTags' => 1, 00489 ) 00490 ), 00491 'tables_modify' => Array ( 00492 'label' => 'Tables (modify):', 00493 'config' => Array ( 00494 'type' => 'select', 00495 'special' => 'tables', 00496 'size' => '5', 00497 'autoSizeMax' => 50, 00498 'maxitems' => 100, 00499 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00500 'iconsInOptionTags' => 1, 00501 ) 00502 ), 00503 'tables_select' => Array ( 00504 'label' => 'Tables (listing):', 00505 'config' => Array ( 00506 'type' => 'select', 00507 'special' => 'tables', 00508 'size' => '5', 00509 'autoSizeMax' => 50, 00510 'maxitems' => 100, 00511 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00512 'iconsInOptionTags' => 1, 00513 ) 00514 ), 00515 'non_exclude_fields' => Array ( 00516 'label' => 'Allowed excludefields:', 00517 'config' => Array ( 00518 'type' => 'select', 00519 'special' => 'exclude', 00520 'size' => '25', 00521 'maxitems' => 1000, 00522 'autoSizeMax' => 50, 00523 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00524 ) 00525 ), 00526 'explicit_allowdeny' => Array ( 00527 'label' => 'Explicitly allow/deny field values:', 00528 'config' => Array ( 00529 'type' => 'select', 00530 'special' => 'explicitValues', 00531 'maxitems' => 1000, 00532 'renderMode' => 'checkbox', 00533 ) 00534 ), 00535 'allowed_languages' => Array ( 00536 'label' => 'Limit to languages:', 00537 'config' => Array ( 00538 'type' => 'select', 00539 'special' => 'languages', 00540 'maxitems' => 1000, 00541 'renderMode' => 'checkbox', 00542 ) 00543 ), 00544 'custom_options' => Array ( 00545 'label' => 'Custom module options:', 00546 'config' => Array ( 00547 'type' => 'select', 00548 'special' => 'custom', 00549 'maxitems' => 1000, 00550 'renderMode' => 'checkbox', 00551 ) 00552 ), 00553 'hidden' => Array ( 00554 'label' => 'Disable:', 00555 'config' => Array ( 00556 'type' => 'check', 00557 'default' => '0' 00558 ) 00559 ), 00560 'lockToDomain' => Array ( 00561 'label' => 'Lock to domain:', 00562 'config' => Array ( 00563 'type' => 'input', 00564 'size' => '20', 00565 'eval' => 'trim', 00566 'max' => '50', 00567 'checkbox' => '', 00568 'softref' => 'substitute' 00569 ) 00570 ), 00571 'groupMods' => Array ( 00572 'label' => 'Modules:', 00573 'config' => Array ( 00574 'type' => 'select', 00575 'special' => 'modListGroup', 00576 'size' => '5', 00577 'autoSizeMax' => 50, 00578 'maxitems' => 100, 00579 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00580 'iconsInOptionTags' => 1, 00581 ) 00582 ), 00583 'inc_access_lists' => Array ( 00584 'label' => 'Include Access Lists:', 00585 'config' => Array ( 00586 'type' => 'check', 00587 'default' => '0' 00588 ) 00589 ), 00590 'description' => Array ( 00591 'label' => 'Description:', 00592 'config' => Array ( 00593 'type' => 'text', 00594 'rows' => 5, 00595 'cols' => 30 00596 ) 00597 ), 00598 'TSconfig' => Array ( 00599 'label' => 'TSconfig:', 00600 'config' => Array ( 00601 'type' => 'text', 00602 'cols' => '40', 00603 'rows' => '5', 00604 'wizards' => Array( 00605 '_PADDING' => 4, 00606 '0' => Array( 00607 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'', 00608 'title' => 'TSconfig QuickReference', 00609 'script' => 'wizard_tsconfig.php?mode=beuser', 00610 'icon' => 'wizard_tsconfig.gif', 00611 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1', 00612 ) 00613 ), 00614 'softref' => 'TSconfig' 00615 ), 00616 'defaultExtras' => 'fixed-font : enable-tab', 00617 ), 00618 'hide_in_lists' => Array ( 00619 'label' => 'Hide in lists:', 00620 'config' => Array ( 00621 'type' => 'check', 00622 'default' => 0 00623 ) 00624 ), 00625 'subgroup' => Array ( 00626 'label' => 'Sub Groups:', 00627 'config' => Array ( 00628 'type' => 'select', 00629 'foreign_table' => 'be_groups', 00630 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title', 00631 'size' => '5', 00632 'autoSizeMax' => 50, 00633 'maxitems' => 20, 00634 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00635 'iconsInOptionTags' => 1, 00636 ) 00637 ) 00638 ), 00639 'types' => Array ( 00640 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2, lockToDomain, --div--, inc_access_lists;;;;3-3-3, db_mountpoints;;;;4-4-4,file_mountpoints,workspace_perms,hide_in_lists,subgroup,description, --div--, TSconfig;;;;5-5-5'), 00641 '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2, lockToDomain, --div--, inc_access_lists;;;;3-3-3, groupMods, tables_select, tables_modify, pagetypes_select, non_exclude_fields, explicit_allowdeny, allowed_languages, custom_options, --div--, db_mountpoints;;;;4-4-4,file_mountpoints,workspace_perms,hide_in_lists,subgroup,description, --div--, TSconfig;;;;5-5-5') 00642 ) 00643 ); 00644 00645 00646 00650 $TCA['sys_filemounts'] = Array ( 00651 'ctrl' => $TCA['sys_filemounts']['ctrl'], 00652 'interface' => Array ( 00653 'showRecordFieldList' => 'title,hidden,path,base' 00654 ), 00655 'columns' => Array ( 00656 'title' => Array ( 00657 'label' => 'LABEL:', 00658 'config' => Array ( 00659 'type' => 'input', 00660 'size' => '20', 00661 'max' => '30', 00662 'eval' => 'required,trim' 00663 ) 00664 ), 00665 'path' => Array ( 00666 'label' => 'PATH:', 00667 'config' => Array ( 00668 'type' => 'input', 00669 'size' => '40', 00670 'max' => '120', 00671 'eval' => 'required,trim', 00672 'softref' => 'substitute' 00673 ) 00674 ), 00675 'hidden' => Array ( 00676 'label' => 'Disable:', 00677 'config' => Array ( 00678 'type' => 'check' 00679 ) 00680 ), 00681 'base' => Array ( 00682 'label' => 'BASE', 00683 'config' => Array ( 00684 'type' => 'radio', 00685 'items' => Array ( 00686 Array('absolute (root) / ', 0), 00687 Array('relative ../fileadmin/', 1) 00688 ), 00689 'default' => 0 00690 ) 00691 ) 00692 ), 00693 'types' => Array ( 00694 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base') 00695 ) 00696 ); 00697 00698 00699 00703 $TCA['sys_workspace'] = Array ( 00704 'ctrl' => $TCA['sys_workspace']['ctrl'], 00705 'columns' => Array ( 00706 'title' => Array ( 00707 'label' => 'Title:', 00708 'config' => Array ( 00709 'type' => 'input', 00710 'size' => '20', 00711 'max' => '30', 00712 'eval' => 'required,trim' 00713 ) 00714 ), 00715 'description' => Array ( 00716 'label' => 'Description:', 00717 'config' => Array ( 00718 'type' => 'text', 00719 'rows' => 5, 00720 'cols' => 30 00721 ) 00722 ), 00723 'adminusers' => Array ( 00724 'label' => 'Owners:', 00725 'config' => Array ( 00726 'type' => 'group', 00727 'internal_type' => 'db', 00728 'allowed' => 'be_users', 00729 'size' => '3', 00730 'maxitems' => '10', 00731 'autoSizeMax' => 10, 00732 'show_thumbs' => '1' 00733 ) 00734 ), 00735 'members' => Array ( 00736 'label' => 'Members:', 00737 'config' => Array ( 00738 'type' => 'group', 00739 'internal_type' => 'db', 00740 'allowed' => 'be_users,be_groups', 00741 'prepend_tname' => 1, 00742 'size' => '3', 00743 'maxitems' => '100', 00744 'autoSizeMax' => 10, 00745 'show_thumbs' => '1' 00746 ) 00747 ), 00748 'reviewers' => Array ( 00749 'label' => 'Reviewers:', 00750 'config' => Array ( 00751 'type' => 'group', 00752 'internal_type' => 'db', 00753 'allowed' => 'be_users,be_groups', 00754 'prepend_tname' => 1, 00755 'size' => '3', 00756 'maxitems' => '100', 00757 'autoSizeMax' => 10, 00758 'show_thumbs' => '1' 00759 ) 00760 ), 00761 'db_mountpoints' => Array ( 00762 'label' => 'DB Mounts:', 00763 'config' => Array ( 00764 'type' => 'group', 00765 'internal_type' => 'db', 00766 'allowed' => 'pages', 00767 'size' => '3', 00768 'maxitems' => '10', 00769 'autoSizeMax' => 10, 00770 'show_thumbs' => '1' 00771 ) 00772 ), 00773 'file_mountpoints' => Array ( 00774 'label' => 'File Mounts:', 00775 'config' => Array ( 00776 'type' => 'select', 00777 'foreign_table' => 'sys_filemounts', 00778 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title', 00779 'size' => '3', 00780 'maxitems' => '10', 00781 'autoSizeMax' => 10, 00782 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00783 'iconsInOptionTags' => 1, 00784 ) 00785 ), 00786 'publish_time' => Array ( 00787 'label' => 'Publish:', 00788 'config' => Array ( 00789 'type' => 'input', 00790 'size' => '8', 00791 'max' => '20', 00792 'eval' => 'datetime', 00793 'default' => '0', 00794 'checkbox' => '0' 00795 ) 00796 ), 00797 'unpublish_time' => Array ( 00798 'label' => 'Un-publish:', 00799 'config' => Array ( 00800 'type' => 'input', 00801 'size' => '8', 00802 'max' => '20', 00803 'eval' => 'datetime', 00804 'checkbox' => '0', 00805 'default' => '0', 00806 'range' => Array ( 00807 'upper' => mktime(0,0,0,12,31,2020), 00808 ) 00809 ) 00810 ), 00811 'freeze' => Array ( 00812 'label' => 'Freeze Editing', 00813 'config' => Array ( 00814 'type' => 'check', 00815 'default' => '0' 00816 ) 00817 ), 00818 'live_edit' => Array ( 00819 'label' => 'Allow "live" editing of records from tables without versioning', 00820 'config' => Array ( 00821 'type' => 'check', 00822 'default' => '0' 00823 ) 00824 ), 00825 'review_stage_edit' => Array ( 00826 'label' => 'Allow members to edit records in "Review" stage', 00827 'config' => Array ( 00828 'type' => 'check', 00829 'default' => '0' 00830 ) 00831 ), 00832 'disable_autocreate' => Array ( 00833 'label' => 'Disable auto-versioning when editing', 00834 'config' => Array ( 00835 'type' => 'check', 00836 'default' => '0' 00837 ) 00838 ), 00839 'swap_modes' => Array ( 00840 'label' => 'Swap modes', 00841 'config' => Array ( 00842 'type' => 'select', 00843 'items' => Array ( 00844 Array('',0), 00845 Array('Swap-Into-Workspace on Auto-publish',1), 00846 Array('Disable Swap-Into-Workspace',2) 00847 ), 00848 ) 00849 ), 00850 'vtypes' => Array ( 00851 'label' => 'Disable Versioning Types for members and reviewers:', 00852 'config' => Array ( 00853 'type' => 'check', 00854 'items' => Array ( 00855 Array('Element',0), 00856 Array('Page',0), 00857 Array('Branch',0) 00858 ), 00859 ) 00860 ), 00861 'publish_access' => Array ( 00862 'label' => 'Publish access:', 00863 'config' => Array ( 00864 'type' => 'check', 00865 'items' => Array ( 00866 Array('Publish only content in publish stage',0), 00867 Array('Only workspace owner can publish',0), 00868 ), 00869 ) 00870 ), 00871 'stagechg_notification' => Array ( 00872 'label' => 'Stage change notification by email:', 00873 'config' => Array ( 00874 'type' => 'select', 00875 'items' => Array ( 00876 Array('',0), 00877 Array('Notify users on next stage only',1), 00878 Array('Notify all users on any change',10) 00879 ), 00880 ) 00881 ), 00882 ), 00883 'types' => Array ( 00884 '0' => Array('showitem' => 'title,description,--div--;Users,adminusers,members,reviewers,stagechg_notification,--div--;Mountpoints,db_mountpoints,file_mountpoints,--div--;Publishing,publish_time,unpublish_time,--div--;Other,freeze,live_edit,review_stage_edit,disable_autocreate,swap_modes,vtypes,publish_access') 00885 ) 00886 ); 00887 00888 00889 00893 $TCA['sys_language'] = Array ( 00894 'ctrl' => $TCA['sys_language']['ctrl'], 00895 'interface' => Array ( 00896 'showRecordFieldList' => 'hidden,title' 00897 ), 00898 'columns' => Array ( 00899 'title' => Array ( 00900 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language', 00901 'config' => Array ( 00902 'type' => 'input', 00903 'size' => '35', 00904 'max' => '80', 00905 'eval' => 'trim,required' 00906 ) 00907 ), 00908 'hidden' => Array ( 00909 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable', 00910 'exclude' => 1, 00911 'config' => Array ( 00912 'type' => 'check', 00913 'default' => '0' 00914 ) 00915 ), 00916 'static_lang_isocode' => Array ( 00917 'exclude' => 1, 00918 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode', 00919 'displayCond' => 'EXT:static_info_tables:LOADED:true', 00920 'config' => Array ( 00921 'type' => 'select', 00922 'items' => Array ( 00923 Array('',0), 00924 ), 00925 'foreign_table' => 'static_languages', 00926 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en', 00927 'size' => 1, 00928 'minitems' => 0, 00929 'maxitems' => 1, 00930 ) 00931 ), 00932 'flag' => array( 00933 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag', 00934 'config' => Array ( 00935 'type' => 'select', 00936 'items' => Array ( 00937 Array('',0), 00938 ), 00939 'fileFolder' => 'typo3/gfx/flags/', // Only shows if "t3lib/" is in the PATH_site... 00940 'fileFolder_extList' => 'png,jpg,jpeg,gif', 00941 'fileFolder_recursions' => 0, 00942 'selicon_cols' => 8, 00943 'size' => 1, 00944 'minitems' => 0, 00945 'maxitems' => 1, 00946 ) 00947 ) 00948 ), 00949 'types' => Array ( 00950 '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag') 00951 ) 00952 ); 00953 00954 ?>