Documentation TYPO3 par Ameos

tbl_be.php

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' => '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                                 '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                 'starttime' => Array (
00247                         'label' => 'Start:',
00248                         'config' => Array (
00249                                 'type' => 'input',
00250                                 'size' => '8',
00251                                 'max' => '20',
00252                                 'eval' => 'date',
00253                                 'default' => '0',
00254                                 'checkbox' => '0'
00255                         )
00256                 ),
00257                 'endtime' => Array (
00258                         'label' => 'Stop:',
00259                         'config' => Array (
00260                                 'type' => 'input',
00261                                 'size' => '8',
00262                                 'max' => '20',
00263                                 'eval' => 'date',
00264                                 'checkbox' => '0',
00265                                 'default' => '0',
00266                                 'range' => Array (
00267                                         'upper' => mktime(0,0,0,12,31,2020),
00268                                 )
00269                         )
00270                 ),
00271                 'lang' => Array (
00272                         'label' => 'Default Language:',
00273                         'config' => Array (
00274                                 'type' => 'select',
00275                                 'items' => Array (
00276                                         Array('English', ''),
00277                                         Array('Arabic', 'ar'),
00278                                         Array('Bahasa Malaysia', 'my'),
00279                                         Array('Basque', 'eu'),
00280                                         Array('Bosnian', 'ba'),
00281                                         Array('Brazilian Portuguese', 'br'),
00282                                         Array('Bulgarian', 'bg'),
00283                                         Array('Catalan', 'ca'),
00284                                         Array('Chinese (Simpl)', 'ch'),
00285                                         Array('Chinese (Trad)', 'hk'),
00286                                         Array('Croatian', 'hr'),
00287                                         Array('Czech', 'cz'),
00288                                         Array('Danish', 'dk'),
00289                                         Array('Dutch', 'nl'),
00290                                         Array('Estonian', 'et'),
00291                                         Array('Esperanto', 'eo'),
00292                                         Array('Finnish', 'fi'),
00293                                         Array('French', 'fr'),
00294                                         Array('German', 'de'),
00295                                         Array('Greek', 'gr'),
00296                                         Array('Greenlandic', 'gl'),
00297                                         Array('Hebrew', 'he'),
00298                                         Array('Hindi', 'hi'),
00299                                         Array('Hungarian', 'hu'),
00300                                         Array('Icelandic', 'is'),
00301                                         Array('Italian', 'it'),
00302                                         Array('Japanese', 'jp'),
00303                                         Array('Korean', 'kr'),
00304                                         Array('Latvian', 'lv'),
00305                                         Array('Lithuanian', 'lt'),
00306                                         Array('Norwegian', 'no'),
00307                                         Array('Polish', 'pl'),
00308                                         Array('Portuguese', 'pt'),
00309                                         Array('Romanian', 'ro'),
00310                                         Array('Russian', 'ru'),
00311                                         Array('Slovak', 'sk'),
00312                                         Array('Slovenian', 'si'),
00313                                         Array('Spanish', 'es'),
00314                                         Array('Swedish', 'se'),
00315                                         Array('Thai', 'th'),
00316                                         Array('Turkish', 'tr'),
00317                                         Array('Ukrainian', 'ua'),
00318                                         Array('Vietnamese', 'vn'),
00319                                 )
00320                         )
00321                 ),
00322                 'userMods' => Array (
00323                         'label' => 'Modules:',
00324                         'config' => Array (
00325                                 'type' => 'select',
00326                                 'special' => 'modListUser',
00327                                 'size' => '5',
00328                                 'autoSizeMax' => 50,
00329                                 'maxitems' => '15',
00330                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00331                                 'iconsInOptionTags' => 1,
00332                         )
00333                 ),
00334                 'allowed_languages' => Array (
00335                         'label' => 'Limit to languages:',
00336                         'config' => Array (
00337                                 'type' => 'select',
00338                                 'special' => 'languages',
00339                                 'maxitems' => '1000',
00340                                 'renderMode' => 'checkbox',
00341                         )
00342                 ),
00343                 'TSconfig' => Array (
00344                         'label' => 'TSconfig:',
00345                         'config' => Array (
00346                                 'type' => 'text',
00347                                 'cols' => '40',
00348                                 'rows' => '5',
00349                                 'wizards' => Array(
00350                                         '_PADDING' => 4,
00351                                         '0' => Array(
00352                                                 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00353                                                 'title' => 'TSconfig QuickReference',
00354                                                 'script' => 'wizard_tsconfig.php?mode=beuser',
00355                                                 'icon' => 'wizard_tsconfig.gif',
00356                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00357                                         )
00358                                 ),
00359                                 'softref' => 'TSconfig'
00360                         )
00361                 ),
00362                 'createdByAction' => Array('config'=>array('type'=>'passthrough'))
00363         ),
00364         'types' => Array (
00365                 '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'),
00366                 '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')
00367         ),
00368         'palettes' => Array (
00369                 '1' => Array('showitem' => 'disable, starttime, endtime')
00370         )
00371 );
00372 
00373 
00374 
00378 $TCA['be_groups'] = Array (
00379         'ctrl' => $TCA['be_groups']['ctrl'],
00380         'interface' => Array (
00381                 'showRecordFieldList' => 'title,db_mountpoints,file_mountpoints,inc_access_lists,tables_select,tables_modify,pagetypes_select,non_exclude_fields,groupMods,lockToDomain,description'
00382         ),
00383         'columns' => Array (
00384                 'title' => Array (
00385                         'label' => 'Grouptitle:',
00386                         'config' => Array (
00387                                 'type' => 'input',
00388                                 'size' => '25',
00389                                 'max' => '20',
00390                                 'eval' => 'trim,required'
00391                         )
00392                 ),
00393                 'db_mountpoints' => Array (
00394                         'label' => 'DB Mounts:',
00395                         'config' => Array (
00396                                 'type' => 'group',
00397                                 'internal_type' => 'db',
00398                                         'allowed' => 'pages',
00399                                 'size' => '3',
00400                                 'maxitems' => '10',
00401                                 'autoSizeMax' => 10,
00402                                 'show_thumbs' => '1'
00403                         )
00404                 ),
00405                 'file_mountpoints' => Array (
00406                         'label' => 'File Mounts:',
00407                         'config' => Array (
00408                                 'type' => 'select',
00409                                 'foreign_table' => 'sys_filemounts',
00410                                 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
00411                                 'size' => '3',
00412                                 'maxitems' => '10',
00413                                 'autoSizeMax' => 10,
00414                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00415                                 'iconsInOptionTags' => 1,
00416                                 'wizards' => Array(
00417                                         '_PADDING' => 1,
00418                                         '_VERTICAL' => 1,
00419                                         'edit' => Array(
00420                                                 'type' => 'popup',
00421                                                 'title' => 'Edit filemount',
00422                                                 'script' => 'wizard_edit.php',
00423                                                 'popup_onlyOpenIfSelected' => 1,
00424                                                 'icon' => 'edit2.gif',
00425                                                 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
00426                                         ),
00427                                         'add' => Array(
00428                                                 'type' => 'script',
00429                                                 'title' => 'Create new filemount',
00430                                                 'icon' => 'add.gif',
00431                                                 'params' => Array(
00432                                                         'table'=>'sys_filemounts',
00433                                                         'pid' => '0',
00434                                                         'setValue' => 'prepend'
00435                                                 ),
00436                                                 'script' => 'wizard_add.php',
00437                                         ),
00438                                         'list' => Array(
00439                                                 'type' => 'script',
00440                                                 'title' => 'List filemounts',
00441                                                 'icon' => 'list.gif',
00442                                                 'params' => Array(
00443                                                         'table'=>'sys_filemounts',
00444                                                         'pid' => '0',
00445                                                 ),
00446                                                 'script' => 'wizard_list.php',
00447                                         )
00448                                 )
00449                         )
00450                 ),
00451                 'pagetypes_select' => Array (
00452                         'label' => 'Page types:',
00453                         'config' => Array (
00454                                 'type' => 'select',
00455                                 'special' => 'pagetypes',
00456                                 'size' => '5',
00457                                 'autoSizeMax' => 50,
00458                                 'maxitems' => 20,
00459                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00460                                 'iconsInOptionTags' => 1,
00461                         )
00462                 ),
00463                 'tables_modify' => Array (
00464                         'label' => 'Tables (modify):',
00465                         'config' => Array (
00466                                 'type' => 'select',
00467                                 'special' => 'tables',
00468                                 'size' => '5',
00469                                 'autoSizeMax' => 50,
00470                                 'maxitems' => 20,
00471                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00472                                 'iconsInOptionTags' => 1,
00473                         )
00474                 ),
00475                 'tables_select' => Array (
00476                         'label' => 'Tables (listing):',
00477                         'config' => Array (
00478                                 'type' => 'select',
00479                                 'special' => 'tables',
00480                                 'size' => '5',
00481                                 'autoSizeMax' => 50,
00482                                 'maxitems' => 20,
00483                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00484                                 'iconsInOptionTags' => 1,
00485                         )
00486                 ),
00487                 'non_exclude_fields' => Array (
00488                         'label' => 'Allowed excludefields:',
00489                         'config' => Array (
00490                                 'type' => 'select',
00491                                 'special' => 'exclude',
00492                                 'size' => '25',
00493                                 'maxitems' => '300',
00494                                 'autoSizeMax' => 50,
00495                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00496                         )
00497                 ),
00498                 'explicit_allowdeny' => Array (
00499                         'label' => 'Explicitly allow/deny field values:',
00500                         'config' => Array (
00501                                 'type' => 'select',
00502                                 'special' => 'explicitValues',
00503                                 'maxitems' => '1000',
00504                                 'renderMode' => 'checkbox',
00505                         )
00506                 ),
00507                 'allowed_languages' => Array (
00508                         'label' => 'Limit to languages:',
00509                         'config' => Array (
00510                                 'type' => 'select',
00511                                 'special' => 'languages',
00512                                 'maxitems' => '1000',
00513                                 'renderMode' => 'checkbox',
00514                         )
00515                 ),
00516                 'custom_options' => Array (
00517                         'label' => 'Custom module options:',
00518                         'config' => Array (
00519                                 'type' => 'select',
00520                                 'special' => 'custom',
00521                                 'maxitems' => '1000',
00522                                 'renderMode' => 'checkbox',
00523                         )
00524                 ),
00525                 'hidden' => Array (
00526                         'label' => 'Disable:',
00527                         'config' => Array (
00528                                 'type' => 'check',
00529                                 'default' => '0'
00530                         )
00531                 ),
00532                 'lockToDomain' => Array (
00533                         'label' => 'Lock to domain:',
00534                         'config' => Array (
00535                                 'type' => 'input',
00536                                 'size' => '20',
00537                                 'eval' => 'trim',
00538                                 'max' => '50',
00539                                 'checkbox' => '',
00540                                 'softref' => 'substitute'
00541                         )
00542                 ),
00543                 'groupMods' => Array (
00544                         'label' => 'Modules:',
00545                         'config' => Array (
00546                                 'type' => 'select',
00547                                 'special' => 'modListGroup',
00548                                 'size' => '5',
00549                                 'autoSizeMax' => 50,
00550                                 'maxitems' => '15',
00551                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00552                                 'iconsInOptionTags' => 1,
00553                         )
00554                 ),
00555                 'inc_access_lists' => Array (
00556                         'label' => 'Include Access Lists:',
00557                         'config' => Array (
00558                                 'type' => 'check',
00559                                 'default' => '0'
00560                         )
00561                 ),
00562                 'description' => Array (
00563                         'label' => 'Description:',
00564                         'config' => Array (
00565                                 'type' => 'text',
00566                                 'rows' => 5,
00567                                 'cols' => 30
00568                         )
00569                 ),
00570                 'TSconfig' => Array (
00571                         'label' => 'TSconfig:',
00572                         'config' => Array (
00573                                 'type' => 'text',
00574                                 'cols' => '40',
00575                                 'rows' => '5',
00576                                 'wizards' => Array(
00577                                         '_PADDING' => 4,
00578                                         '0' => Array(
00579                                                 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00580                                                 'title' => 'TSconfig QuickReference',
00581                                                 'script' => 'wizard_tsconfig.php?mode=beuser',
00582                                                 'icon' => 'wizard_tsconfig.gif',
00583                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00584                                         )
00585                                 ),
00586                                 'softref' => 'TSconfig'
00587                         )
00588                 ),
00589                 'hide_in_lists' => Array (
00590                         'label' => 'Hide in lists:',
00591                         'config' => Array (
00592                                 'type' => 'check',
00593                                 'default' => 0
00594                         )
00595                 ),
00596                 'subgroup' => Array (
00597                         'label' => 'Sub Groups:',
00598                         'config' => Array (
00599                                 'type' => 'select',
00600                                 'foreign_table' => 'be_groups',
00601                                 'foreign_table_where' => 'ORDER BY be_groups.title',
00602                                 'size' => '5',
00603                                 'autoSizeMax' => 50,
00604                                 'maxitems' => 20,
00605                                 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
00606                                 'iconsInOptionTags' => 1,
00607                         )
00608                 )
00609         ),
00610         'types' => Array (
00611                 '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'),
00612                 '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')
00613         )
00614 );
00615 
00616 
00617 
00621 $TCA['sys_filemounts'] = Array (
00622         'ctrl' => $TCA['sys_filemounts']['ctrl'],
00623         'interface' => Array (
00624                 'showRecordFieldList' => 'title,hidden,path,base'
00625         ),
00626         'columns' => Array (
00627                 'title' => Array (
00628                         'label' => 'LABEL:',
00629                         'config' => Array (
00630                                 'type' => 'input',
00631                                 'size' => '20',
00632                                 'max' => '30',
00633                                 'eval' => 'required,trim'
00634                         )
00635                 ),
00636                 'path' => Array (
00637                         'label' => 'PATH:',
00638                         'config' => Array (
00639                                 'type' => 'input',
00640                                 'size' => '40',
00641                                 'max' => '120',
00642                                 'eval' => 'required,trim',
00643                                 'softref' => 'substitute'
00644                         )
00645                 ),
00646                 'hidden' => Array (
00647                         'label' => 'Disable:',
00648                         'config' => Array (
00649                                 'type' => 'check'
00650                         )
00651                 ),
00652                 'base' => Array (
00653                         'label' => 'BASE',
00654                         'config' => Array (
00655                                 'type' => 'radio',
00656                                 'items' => Array (
00657                                         Array('absolute (root) / ', 0),
00658                                         Array('relative ../fileadmin/', 1)
00659                                 ),
00660                                 'default' => 0
00661                         )
00662                 )
00663         ),
00664         'types' => Array (
00665                 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base')
00666         )
00667 );
00668 
00669 
00670 
00674 $TCA['sys_language'] = Array (
00675         'ctrl' => $TCA['sys_language']['ctrl'],
00676         'interface' => Array (
00677                 'showRecordFieldList' => 'hidden,title'
00678         ),
00679         'columns' => Array (
00680                 'title' => Array (
00681                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
00682                         'config' => Array (
00683                                 'type' => 'input',
00684                                 'size' => '35',
00685                                 'max' => '80',
00686                                 'eval' => 'trim,required'
00687                         )
00688                 ),
00689                 'hidden' => Array (
00690                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
00691                         'exclude' => 1,
00692                         'config' => Array (
00693                                 'type' => 'check',
00694                                 'default' => '0'
00695                         )
00696                 ),
00697                 'static_lang_isocode' => Array (
00698                         'exclude' => 1,
00699                         'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode',
00700                         'displayCond' => 'EXT:static_info_tables:LOADED:true',
00701                         'config' => Array (
00702                                 'type' => 'select',
00703                                 'items' => Array (
00704                                         Array('',0),
00705                                 ),
00706                                 'foreign_table' => 'static_languages',
00707                                 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
00708                                 'size' => 1,
00709                                 'minitems' => 0,
00710                                 'maxitems' => 1,
00711                         )
00712                 ),
00713                 'flag' => array(
00714                         'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag',
00715                         'config' => Array (
00716                                 'type' => 'select',
00717                                 'items' => Array (
00718                                         Array('',0),
00719                                 ),
00720                                 'fileFolder' => 't3lib/gfx/flags/',     // Only shows if "t3lib/" is in the PATH_site...
00721                                 'fileFolder_extList' => 'png,jpg,jpeg,gif',
00722                                 'fileFolder_recursions' => 0,
00723                                 'selicon_cols' => 8,
00724                                 'size' => 1,
00725                                 'minitems' => 0,
00726                                 'maxitems' => 1,
00727                 )
00728                 )
00729         ),
00730         'types' => Array (
00731                 '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
00732         )
00733 );
00734 
00735 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6