Documentation TYPO3 par Ameos

tbl_be.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2004 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' => '20',
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                         )
00123                 ),
00124                 'db_mountpoints' => Array (
00125                         'label' => 'DB Mounts:',
00126                         'config' => Array (
00127                                 'type' => 'group',
00128                                 'internal_type' => 'db',
00129                                         'allowed' => 'pages',
00130                                 'size' => '3',
00131                                 'maxitems' => '10',
00132                                 'autoSizeMax' => 10,
00133                                 'show_thumbs' => '1'
00134                         )
00135                 ),
00136                 'file_mountpoints' => Array (
00137                         'label' => 'File Mounts:',
00138                         'config' => Array (
00139                                 'type' => 'select',
00140                                 'foreign_table' => 'sys_filemounts',
00141                                 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
00142                                 'size' => '3',
00143                                 'maxitems' => '10',
00144                                 'autoSizeMax' => 10,
00145                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00146                                 'iconsInOptionTags' => 1,
00147                                 'wizards' => Array(
00148                                         '_PADDING' => 1,
00149                                         '_VERTICAL' => 1,
00150                                         'edit' => Array(
00151                                                 'type' => 'popup',
00152                                                 'title' => 'Edit filemount',
00153                                                 'script' => 'wizard_edit.php',
00154                                                 'icon' => 'edit2.gif',
00155                                                 'popup_onlyOpenIfSelected' => 1,
00156                                                 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
00157                                         ),
00158                                         'add' => Array(
00159                                                 'type' => 'script',
00160                                                 'title' => 'Create new filemount',
00161                                                 'icon' => 'add.gif',
00162                                                 'params' => Array(
00163                                                         'table'=>'sys_filemounts',
00164                                                         'pid' => '0',
00165                                                         'setValue' => 'prepend'
00166                                                 ),
00167                                                 'script' => 'wizard_add.php',
00168                                         ),
00169                                         'list' => Array(
00170                                                 'type' => 'script',
00171                                                 'title' => 'List filemounts',
00172                                                 'icon' => 'list.gif',
00173                                                 'params' => Array(
00174                                                         'table'=>'sys_filemounts',
00175                                                         'pid' => '0',
00176                                                 ),
00177                                                 'script' => 'wizard_list.php',
00178                                         )
00179                                 )
00180                         )
00181                 ),
00182                 'email' => Array (
00183                         'label' => 'Email:',
00184                         'config' => Array (
00185                                 'type' => 'input',
00186                                 'size' => '20',
00187                                 'eval' => 'trim',
00188                                 'max' => '80'
00189                         )
00190                 ),
00191                 'realName' => Array (
00192                         'label' => 'Name:',
00193                         'config' => Array (
00194                                 'type' => 'input',
00195                                 'size' => '20',
00196                                 'eval' => 'trim',
00197                                 'max' => '80'
00198                         )
00199                 ),
00200                 'disable' => Array (
00201                         'label' => 'Disable:',
00202                         'config' => Array (
00203                                 'type' => 'check'
00204                         )
00205                 ),
00206                 'disableIPlock' => Array (
00207                         'label' => 'Disable IP lock for user:',
00208                         'config' => Array (
00209                                 'type' => 'check'
00210                         )
00211                 ),
00212                 'admin' => Array (
00213                         'label' => 'Admin(!):',
00214                         'config' => Array (
00215                                 'type' => 'check',
00216                                 'default' => '0'
00217                         )
00218                 ),
00219                 'options' => Array (
00220                         'label' => 'Mount from groups:',
00221                         'config' => Array (
00222                                 'type' => 'check',
00223                                 'items' => Array (
00224                                         Array('DB Mounts', 0),
00225                                         Array('File Mounts', 0)
00226                                 ),
00227                                 'default' => '3'
00228                         )
00229                 ),
00230                 'fileoper_perms' => Array (
00231                         'label' => 'Fileoperation permissions:',
00232                         'config' => Array (
00233                                 'type' => 'check',
00234                                 'items' => Array (
00235                                         Array('Files: Upload,Copy,Move,Delete,Rename,New,Edit', 0),
00236                                         Array('Files: Unzip', 0),
00237                                         Array('Directory: Move,Delete,Rename,New', 0),
00238                                         Array('Directory: Copy', 0),
00239                                         Array('Directory: Delete recursively (rm -Rf)', 0)
00240                                 ),
00241                                 'default' => '7'
00242                         )
00243                 ),
00244                 'starttime' => Array (
00245                         'label' => 'Start:',
00246                         'config' => Array (
00247                                 'type' => 'input',
00248                                 'size' => '8',
00249                                 'max' => '20',
00250                                 'eval' => 'date',
00251                                 'default' => '0',
00252                                 'checkbox' => '0'
00253                         )
00254                 ),
00255                 'endtime' => Array (
00256                         'label' => 'Stop:',
00257                         'config' => Array (
00258                                 'type' => 'input',
00259                                 'size' => '8',
00260                                 'max' => '20',
00261                                 'eval' => 'date',
00262                                 'checkbox' => '0',
00263                                 'default' => '0',
00264                                 'range' => Array (
00265                                         'upper' => mktime(0,0,0,12,31,2020),
00266                                         'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
00267                                 )
00268                         )
00269                 ),
00270                 'lang' => Array (
00271                         'label' => 'Default Language:',
00272                         'config' => Array (
00273                                 'type' => 'select',
00274                                 'items' => Array (
00275                                         Array('English', ''),
00276                                         Array('Arabic', 'ar'),
00277                                         Array('Basque', 'eu'),
00278                                         Array('Bosnian', 'ba'),
00279                                         Array('Brazilian Portuguese', 'br'),
00280                                         Array('Bulgarian', 'bg'),
00281                                         Array('Catalan', 'ca'),
00282                                         Array('Chinese (Simpl)', 'ch'),
00283                                         Array('Chinese (Trad)', 'hk'),
00284                                         Array('Croatian', 'hr'),
00285                                         Array('Czech', 'cz'),
00286                                         Array('Danish', 'dk'),
00287                                         Array('Dutch', 'nl'),
00288                                         Array('Estonian', 'et'),
00289                                         Array('Finnish', 'fi'),
00290                                         Array('French', 'fr'),
00291                                         Array('German', 'de'),
00292                                         Array('Greek', 'gr'),
00293                                         Array('Greenlandic', 'gl'),
00294                                         Array('Hebrew', 'he'),
00295                                         Array('Hungarian', 'hu'),
00296                                         Array('Icelandic', 'is'),
00297                                         Array('Italian', 'it'),
00298                                         Array('Japanese', 'jp'),
00299                                         Array('Korean', 'kr'),
00300                                         Array('Latvian', 'lv'),
00301                                         Array('Lithuanian', 'lt'),
00302                                         Array('Norwegian', 'no'),
00303                                         Array('Polish', 'pl'),
00304                                         Array('Portuguese', 'pt'),
00305                                         Array('Romanian', 'ro'),
00306                                         Array('Russian', 'ru'),
00307                                         Array('Slovak', 'sk'),
00308                                         Array('Slovenian', 'si'),
00309                                         Array('Spanish', 'es'),
00310                                         Array('Swedish', 'se'),
00311                                         Array('Thai', 'th'),
00312                                         Array('Turkish', 'tr'),
00313                                         Array('Ukrainian', 'ua'),
00314                                         Array('Vietnamese', 'vn'),
00315                                 )
00316                         )
00317                 ),
00318                 'userMods' => Array (
00319                         'label' => 'Modules:',
00320                         'config' => Array (
00321                                 'type' => 'select',
00322                                 'special' => 'modListUser',
00323                                 'size' => '5',
00324                                 'autoSizeMax' => 50,
00325                                 'maxitems' => '15',
00326                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00327                                 'iconsInOptionTags' => 1,
00328                         )
00329                 ),
00330                 'allowed_languages' => Array (
00331                         'label' => 'Limit to languages:',
00332                         'config' => Array (
00333                                 'type' => 'select',
00334                                 'special' => 'languages',
00335                                 'maxitems' => '1000',
00336                                 'renderMode' => 'checkbox',
00337                         )
00338                 ),
00339                 'TSconfig' => Array (
00340                         'label' => 'TSconfig:',
00341                         'config' => Array (
00342                                 'type' => 'text',
00343                                 'cols' => '40',
00344                                 'rows' => '5',
00345                                 'wizards' => Array(
00346                                         '_PADDING' => 4,
00347                                         '0' => Array(
00348                                                 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00349                                                 'title' => 'TSconfig QuickReference',
00350                                                 'script' => 'wizard_tsconfig.php?mode=beuser',
00351                                                 'icon' => 'wizard_tsconfig.gif',
00352                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00353                                         )
00354                                 )
00355                         )
00356                 ),
00357                 'createdByAction' => Array('config'=>array('type'=>'passthrough'))
00358         ),
00359         'types' => Array (
00360                 '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, options, db_mountpoints, file_mountpoints, fileoper_perms, --div--, TSconfig;;;;5-5-5'),
00361                 '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')
00362         ),
00363         'palettes' => Array (
00364                 '1' => Array('showitem' => 'disable, starttime, endtime')
00365         )
00366 );
00367 
00368 
00369 
00373 $TCA['be_groups'] = Array (
00374         'ctrl' => $TCA['be_groups']['ctrl'],
00375         'interface' => Array (
00376                 'showRecordFieldList' => 'title,db_mountpoints,file_mountpoints,inc_access_lists,tables_select,tables_modify,pagetypes_select,non_exclude_fields,groupMods,lockToDomain,description'
00377         ),
00378         'columns' => Array (
00379                 'title' => Array (
00380                         'label' => 'Grouptitle:',
00381                         'config' => Array (
00382                                 'type' => 'input',
00383                                 'size' => '25',
00384                                 'max' => '20',
00385                                 'eval' => 'trim,required'
00386                         )
00387                 ),
00388                 'db_mountpoints' => Array (
00389                         'label' => 'DB Mounts:',
00390                         'config' => Array (
00391                                 'type' => 'group',
00392                                 'internal_type' => 'db',
00393                                         'allowed' => 'pages',
00394                                 'size' => '3',
00395                                 'maxitems' => '10',
00396                                 'autoSizeMax' => 10,
00397                                 'show_thumbs' => '1'
00398                         )
00399                 ),
00400                 'file_mountpoints' => Array (
00401                         'label' => 'File Mounts:',
00402                         'config' => Array (
00403                                 'type' => 'select',
00404                                 'foreign_table' => 'sys_filemounts',
00405                                 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
00406                                 'size' => '3',
00407                                 'maxitems' => '10',
00408                                 'autoSizeMax' => 10,
00409                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00410                                 'iconsInOptionTags' => 1,
00411                                 'wizards' => Array(
00412                                         '_PADDING' => 1,
00413                                         '_VERTICAL' => 1,
00414                                         'edit' => Array(
00415                                                 'type' => 'popup',
00416                                                 'title' => 'Edit filemount',
00417                                                 'script' => 'wizard_edit.php',
00418                                                 'popup_onlyOpenIfSelected' => 1,
00419                                                 'icon' => 'edit2.gif',
00420                                                 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
00421                                         ),
00422                                         'add' => Array(
00423                                                 'type' => 'script',
00424                                                 'title' => 'Create new filemount',
00425                                                 'icon' => 'add.gif',
00426                                                 'params' => Array(
00427                                                         'table'=>'sys_filemounts',
00428                                                         'pid' => '0',
00429                                                         'setValue' => 'prepend'
00430                                                 ),
00431                                                 'script' => 'wizard_add.php',
00432                                         ),
00433                                         'list' => Array(
00434                                                 'type' => 'script',
00435                                                 'title' => 'List filemounts',
00436                                                 'icon' => 'list.gif',
00437                                                 'params' => Array(
00438                                                         'table'=>'sys_filemounts',
00439                                                         'pid' => '0',
00440                                                 ),
00441                                                 'script' => 'wizard_list.php',
00442                                         )
00443                                 )
00444                         )
00445                 ),
00446                 'pagetypes_select' => Array (
00447                         'label' => 'Page types:',
00448                         'config' => Array (
00449                                 'type' => 'select',
00450                                 'special' => 'pagetypes',
00451                                 'size' => '5',
00452                                 'autoSizeMax' => 50,
00453                                 'maxitems' => 20,
00454                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00455                                 'iconsInOptionTags' => 1,
00456                         )
00457                 ),
00458                 'tables_modify' => Array (
00459                         'label' => 'Tables (modify):',
00460                         'config' => Array (
00461                                 'type' => 'select',
00462                                 'special' => 'tables',
00463                                 'size' => '5',
00464                                 'autoSizeMax' => 50,
00465                                 'maxitems' => 20,
00466                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00467                                 'iconsInOptionTags' => 1,
00468                         )
00469                 ),
00470                 'tables_select' => Array (
00471                         'label' => 'Tables (listing):',
00472                         'config' => Array (
00473                                 'type' => 'select',
00474                                 'special' => 'tables',
00475                                 'size' => '5',
00476                                 'autoSizeMax' => 50,
00477                                 'maxitems' => 20,
00478                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00479                                 'iconsInOptionTags' => 1,
00480                         )
00481                 ),
00482                 'non_exclude_fields' => Array (
00483                         'label' => 'Allowed excludefields:',
00484                         'config' => Array (
00485                                 'type' => 'select',
00486                                 'special' => 'exclude',
00487                                 'size' => '25',
00488                                 'maxitems' => '300',
00489                                 'autoSizeMax' => 50,
00490                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00491                         )
00492                 ),
00493                 'explicit_allowdeny' => Array (
00494                         'label' => 'Explicitly allow/deny field values:',
00495                         'config' => Array (
00496                                 'type' => 'select',
00497                                 'special' => 'explicitValues',
00498                                 'maxitems' => '1000',
00499                                 'renderMode' => 'checkbox',
00500                         )
00501                 ),
00502                 'allowed_languages' => Array (
00503                         'label' => 'Limit to languages:',
00504                         'config' => Array (
00505                                 'type' => 'select',
00506                                 'special' => 'languages',
00507                                 'maxitems' => '1000',
00508                                 'renderMode' => 'checkbox',
00509                         )
00510                 ),
00511                 'custom_options' => Array (
00512                         'label' => 'Custom module options:',
00513                         'config' => Array (
00514                                 'type' => 'select',
00515                                 'special' => 'custom',
00516                                 'maxitems' => '1000',
00517                                 'renderMode' => 'checkbox',
00518                         )
00519                 ),
00520                 'hidden' => Array (
00521                         'label' => 'Disable:',
00522                         'config' => Array (
00523                                 'type' => 'check',
00524                                 'default' => '0'
00525                         )
00526                 ),
00527                 'lockToDomain' => Array (
00528                         'label' => 'Lock to domain:',
00529                         'config' => Array (
00530                                 'type' => 'input',
00531                                 'size' => '20',
00532                                 'eval' => 'trim',
00533                                 'max' => '50',
00534                                 'checkbox' => ''
00535                         )
00536                 ),
00537                 'groupMods' => Array (
00538                         'label' => 'Modules:',
00539                         'config' => Array (
00540                                 'type' => 'select',
00541                                 'special' => 'modListGroup',
00542                                 'size' => '5',
00543                                 'autoSizeMax' => 50,
00544                                 'maxitems' => '15',
00545                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00546                                 'iconsInOptionTags' => 1,
00547                         )
00548                 ),
00549                 'inc_access_lists' => Array (
00550                         'label' => 'Include Access Lists:',
00551                         'config' => Array (
00552                                 'type' => 'check',
00553                                 'default' => '0'
00554                         )
00555                 ),
00556                 'description' => Array (
00557                         'label' => 'Description:',
00558                         'config' => Array (
00559                                 'type' => 'text',
00560                                 'rows' => 5,
00561                                 'cols' => 30
00562                         )
00563                 ),
00564                 'TSconfig' => Array (
00565                         'label' => 'TSconfig:',
00566                         'config' => Array (
00567                                 'type' => 'text',
00568                                 'cols' => '40',
00569                                 'rows' => '5',
00570                                 'wizards' => Array(
00571                                         '_PADDING' => 4,
00572                                         '0' => Array(
00573                                                 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00574                                                 'title' => 'TSconfig QuickReference',
00575                                                 'script' => 'wizard_tsconfig.php?mode=beuser',
00576                                                 'icon' => 'wizard_tsconfig.gif',
00577                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00578                                         )
00579                                 )
00580                         )
00581                 ),
00582                 'hide_in_lists' => Array (
00583                         'label' => 'Hide in lists:',
00584                         'config' => Array (
00585                                 'type' => 'check',
00586                                 'default' => 0
00587                         )
00588                 ),
00589                 'subgroup' => Array (
00590                         'label' => 'Sub Groups:',
00591                         'config' => Array (
00592                                 'type' => 'select',
00593                                 'foreign_table' => 'be_groups',
00594                                 'foreign_table_where' => 'ORDER BY be_groups.title',
00595                                 'size' => '5',
00596                                 'autoSizeMax' => 50,
00597                                 'maxitems' => 20,
00598                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00599                                 'iconsInOptionTags' => 1,
00600                         )
00601                 )
00602         ),
00603         'types' => Array (
00604                 '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,hide_in_lists,subgroup,description, --div--, TSconfig;;;;5-5-5'),
00605                 '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,hide_in_lists,subgroup,description, --div--, TSconfig;;;;5-5-5')
00606         )
00607 );
00608 
00609 
00610 
00614 $TCA['sys_filemounts'] = Array (
00615         'ctrl' => $TCA['sys_filemounts']['ctrl'],
00616         'interface' => Array (
00617                 'showRecordFieldList' => 'title,hidden,path,base'
00618         ),
00619         'columns' => Array (
00620                 'title' => Array (
00621                         'label' => 'LABEL:',
00622                         'config' => Array (
00623                                 'type' => 'input',
00624                                 'size' => '20',
00625                                 'max' => '30',
00626                                 'eval' => 'required,trim'
00627                         )
00628                 ),
00629                 'path' => Array (
00630                         'label' => 'PATH:',
00631                         'config' => Array (
00632                                 'type' => 'input',
00633                                 'size' => '40',
00634                                 'max' => '120',
00635                                 'eval' => 'required,trim'
00636                         )
00637                 ),
00638                 'hidden' => Array (
00639                         'label' => 'Disable:',
00640                         'config' => Array (
00641                                 'type' => 'check'
00642                         )
00643                 ),
00644                 'base' => Array (
00645                         'label' => 'BASE',
00646                         'config' => Array (
00647                                 'type' => 'radio',
00648                                 'items' => Array (
00649                                         Array('absolute (root) / ', 0),
00650                                         Array('relative ../fileadmin/', 1)
00651                                 ),
00652                                 'default' => 0
00653                         )
00654                 )
00655         ),
00656         'types' => Array (
00657                 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base')
00658         )
00659 );
00660 
00661 
00662 
00666 $TCA['sys_language'] = Array (
00667         'ctrl' => $TCA['sys_language']['ctrl'],
00668         'interface' => Array (
00669                 'showRecordFieldList' => 'hidden,title'
00670         ),
00671         'columns' => Array (
00672                 'title' => Array (
00673                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
00674                         'config' => Array (
00675                                 'type' => 'input',
00676                                 'size' => '35',
00677                                 'max' => '80',
00678                                 'eval' => 'trim,required'
00679                         )
00680                 ),
00681                 'hidden' => Array (
00682                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
00683                         'exclude' => 1,
00684                         'config' => Array (
00685                                 'type' => 'check',
00686                                 'default' => '0'
00687                         )
00688                 ),
00689                 'static_lang_isocode' => Array (
00690                         'exclude' => 1,
00691                         'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode',
00692                         'displayCond' => 'EXT:static_info_tables:LOADED:true',
00693                         'config' => Array (
00694                                 'type' => 'select',
00695                                 'items' => Array (
00696                                         Array('',0),
00697                                 ),
00698                                 'foreign_table' => 'static_languages',
00699                                 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
00700                                 'size' => 1,
00701                                 'minitems' => 0,
00702                                 'maxitems' => 1,
00703                         )
00704                 ),
00705                 'flag' => array(
00706                         'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag',
00707                         'config' => Array (
00708                                 'type' => 'select',
00709                                 'items' => Array (
00710                                         Array('',0),
00711                                 ),
00712                                 'fileFolder' => 't3lib/gfx/flags/',     // Only shows if "t3lib/" is in the PATH_site...
00713                                 'fileFolder_extList' => 'png,jpg,jpeg,gif',
00714                                 'fileFolder_recursions' => 0,
00715                                 'selicon_cols' => 8,
00716                                 'size' => 1,
00717                                 'minitems' => 0,
00718                                 'maxitems' => 1,
00719                 )
00720                 )
00721         ),
00722         'types' => Array (
00723                 '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
00724         )
00725 );
00726 
00727 ?>


Généré par L'expert TYPO3 avec  doxygen 1.4.6