Documentation TYPO3 par Ameos

ext_tables.php

00001 <?php
00002 # TYPO3 CVS ID: $Id: ext_tables.php,v 1.12 2004/08/23 22:03:15 typo3 Exp $
00003 if (!defined ('TYPO3_MODE'))    die ('Access denied.');
00004 
00005 if (TYPO3_MODE=='BE')   {
00006         t3lib_extMgm::addModule('web','layout','top',t3lib_extMgm::extPath($_EXTKEY).'layout/');
00007         t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout','EXT:cms/locallang_csh_weblayout.xml');
00008         t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info','EXT:cms/locallang_csh_webinfo.xml');
00009 
00010         t3lib_extMgm::insertModuleFunction(
00011                 'web_info',
00012                 'tx_cms_webinfo_page',
00013                 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo.php',
00014                 'LLL:EXT:cms/locallang_tca.php:mod_tx_cms_webinfo_page'
00015         );
00016         t3lib_extMgm::insertModuleFunction(
00017                 'web_info',
00018                 'tx_cms_webinfo_lang',
00019                 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo_lang.php',
00020                 'LLL:EXT:cms/locallang_tca.php:mod_tx_cms_webinfo_lang'
00021         );
00022 }
00023 
00024 
00025 // ******************************************************************
00026 // Extend 'pages'-table
00027 // ******************************************************************
00028 
00029 if (TYPO3_MODE=='BE')   {
00030         // Setting ICON_TYPES
00031         $ICON_TYPES = Array(
00032                 'shop' => Array('icon' => 'modules_shop.gif'),
00033                 'board' => Array('icon' => 'modules_board.gif'),
00034                 'news' => Array('icon' => 'modules_news.gif'),
00035                 'dmail' => Array('icon' => 'modules_dmail.gif'),
00036                 'fe_users' => Array('icon' => 'modules_fe_users.gif'),
00037                 'approve' => Array('icon' => 'modules_approvals.gif')
00038         );
00039 }
00040 
00041         // Adding pages_types:
00042                 // t3lib_div::array_merge() MUST be used!
00043         $PAGES_TYPES = t3lib_div::array_merge(array(
00044                 '3' => Array(
00045                         'icon' => 'pages_link.gif'
00046                 ),
00047                 '4' => Array(
00048                         'icon' => 'pages_shortcut.gif'
00049                 ),
00050                 '5' => Array(
00051                         'icon' => 'pages_notinmenu.gif'
00052                 ),
00053                 '7' => Array(
00054                         'icon' => 'pages_mountpoint.gif'
00055                 ),
00056                 '6' => Array(
00057                         'type' => 'web',
00058                         'icon' => 'be_users_section.gif',
00059                         'allowedTables' => '*'
00060                 ),
00061                 '199' => Array(         // TypoScript: Limit is 200. When the doktype is 200 or above, the page WILL NOT be regarded as a 'page' by TypoScript. Rather is it a system-type page
00062                         'type' => 'sys',
00063                         'icon' => 'spacer_icon.gif',
00064                 )
00065         ),$PAGES_TYPES);
00066 
00067         // Add allowed records to pages:
00068         t3lib_extMgm::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain');
00069 
00070         // Merging in CMS doktypes:
00071         array_splice(
00072                 $TCA['pages']['columns']['doktype']['config']['items'],
00073                 1,
00074                 0,
00075                 Array(
00076                         Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.0', '2'),
00077                         Array('LLL:EXT:lang/locallang_general.php:LGL.external', '3'),
00078                         Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.2', '4'),
00079                         Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.3', '5'),
00080                         Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.4', '6'),
00081                         Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.5', '7'),
00082                         Array('-----', '--div--'),
00083                         Array('LLL:EXT:cms/locallang_tca.php:pages.doktype.I.7', '199')
00084                 )
00085         );
00086 
00087         // Setting enablecolumns:
00088         $TCA['pages']['ctrl']['enablecolumns'] = Array (
00089                 'disabled' => 'hidden',
00090                 'starttime' => 'starttime',
00091                 'endtime' => 'endtime',
00092                 'fe_group' => 'fe_group',
00093         );
00094 
00095         // Adding default value columns:
00096         $TCA['pages']['ctrl']['useColumnsForDefaultValues'].=',fe_group,hidden';
00097 
00098         // Adding new columns:
00099         $TCA['pages']['columns'] = array_merge($TCA['pages']['columns'],Array(
00100                 'hidden' => Array (
00101                         'exclude' => 1,
00102                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.hidden',
00103                         'config' => Array (
00104                                 'type' => 'check',
00105                                 'default' => '1'
00106                         )
00107                 ),
00108                 'starttime' => Array (
00109                         'exclude' => 1,
00110                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
00111                         'config' => Array (
00112                                 'type' => 'input',
00113                                 'size' => '8',
00114                                 'max' => '20',
00115                                 'eval' => 'date',
00116                                 'checkbox' => '0',
00117                                 'default' => '0'
00118                         )
00119                 ),
00120                 'endtime' => Array (
00121                         'exclude' => 1,
00122                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
00123                         'config' => Array (
00124                                 'type' => 'input',
00125                                 'size' => '8',
00126                                 'max' => '20',
00127                                 'eval' => 'date',
00128                                 'checkbox' => '0',
00129                                 'default' => '0',
00130                                 'range' => Array (
00131                                         'upper' => mktime(0,0,0,12,31,2020),
00132                                         'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
00133                                 )
00134                         )
00135                 ),
00136                 'layout' => Array (
00137                         'exclude' => 1,
00138                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.layout',
00139                         'config' => Array (
00140                                 'type' => 'select',
00141                                 'items' => Array (
00142                                         Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '0'),
00143                                         Array('LLL:EXT:cms/locallang_tca.php:pages.layout.I.1', '1'),
00144                                         Array('LLL:EXT:cms/locallang_tca.php:pages.layout.I.2', '2'),
00145                                         Array('LLL:EXT:cms/locallang_tca.php:pages.layout.I.3', '3')
00146                                 ),
00147                                 'default' => '0'
00148                         )
00149                 ),
00150                 'fe_group' => Array (
00151                         'exclude' => 1,
00152                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
00153                         'config' => Array (
00154                                 'type' => 'select',
00155                                 'items' => Array (
00156                                         Array('', 0),
00157                                         Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', -1),
00158                                         Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),
00159                                         Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')
00160                                 ),
00161                                 'foreign_table' => 'fe_groups'
00162                         )
00163                 ),
00164                 'extendToSubpages' => Array (
00165                         'exclude' => 1,
00166                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.extendToSubpages',
00167                         'config' => Array (
00168                                 'type' => 'check'
00169                         )
00170                 ),
00171                 'nav_title' => Array (
00172                         'exclude' => 1,
00173                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.nav_title',
00174                         'config' => Array (
00175                                 'type' => 'input',
00176                                 'size' => '30',
00177                                 'max' => '256',
00178                                 'checkbox' => '',
00179                                 'eval' => 'trim'
00180                         )
00181                 ),
00182                 'nav_hide' => Array (
00183                         'exclude' => 1,
00184                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.nav_hide',
00185                         'config' => Array (
00186                                 'type' => 'check'
00187                         )
00188                 ),
00189                 'subtitle' => Array (
00190                         'exclude' => 1,
00191                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.subtitle',
00192                         'config' => Array (
00193                                 'type' => 'input',
00194                                 'size' => '30',
00195                                 'max' => '256',
00196                                 'eval' => ''
00197                         )
00198                 ),
00199                 'target' => Array (
00200                         'exclude' => 1,
00201                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.target',
00202                         'config' => Array (
00203                                 'type' => 'input',
00204                                 'size' => '7',
00205                                 'max' => '20',
00206                                 'eval' => 'trim',
00207                                 'checkbox' => ''
00208                         )
00209                 ),
00210                 'alias' => Array (
00211                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.alias',
00212                         'config' => Array (
00213                                 'type' => 'input',
00214                                 'size' => '10',
00215                                 'max' => '20',
00216                                 'eval' => 'nospace,alphanum_x,lower,unique'
00217                         )
00218                 ),
00219                 'url' => Array (
00220                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.url',
00221                         'config' => Array (
00222                                 'type' => 'input',
00223                                 'size' => '25',
00224                                 'max' => '256',
00225                                 'eval' => 'trim'
00226                         )
00227                 ),
00228                 'urltype' => Array (
00229                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
00230                         'config' => Array (
00231                                 'type' => 'select',
00232                                 'items' => Array (
00233                                         Array('', '0'),
00234                                         Array('http://', '1'),
00235                                         Array('ftp://', '2'),
00236                                         Array('mailto:', '3')
00237                                 ),
00238                                 'default' => '1'
00239                         )
00240                 ),
00241                 'lastUpdated' => Array (
00242                         'exclude' => 1,
00243                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.lastUpdated',
00244                         'config' => Array (
00245                                 'type' => 'input',
00246                                 'size' => '12',
00247                                 'max' => '20',
00248                                 'eval' => 'datetime',
00249                                 'checkbox' => '0',
00250                                 'default' => '0'
00251                         )
00252                 ),
00253                 'newUntil' => Array (
00254                         'exclude' => 1,
00255                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.newUntil',
00256                         'config' => Array (
00257                                 'type' => 'input',
00258                                 'size' => '8',
00259                                 'max' => '20',
00260                                 'eval' => 'date',
00261                                 'checkbox' => '0',
00262                                 'default' => '0'
00263                         )
00264                 ),
00265                 'cache_timeout' => Array (
00266                         'exclude' => 1,
00267                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.cache_timeout',
00268                         'config' => Array (
00269                                 'type' => 'select',
00270                                 'items' => Array (
00271                                         Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0),
00272                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.1', 60),
00273                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.2', 5*60),
00274                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.3', 15*60),
00275                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.4', 30*60),
00276                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.5', 60*60),
00277                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.6', 4*60*60),
00278                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.7', 24*60*60),
00279                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.8', 2*24*60*60),
00280                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.9', 7*24*60*60),
00281                                         Array('LLL:EXT:cms/locallang_tca.php:pages.cache_timeout.I.10', 31*24*60*60)
00282                                 ),
00283                                 'default' => '0'
00284                         )
00285                 ),
00286                 'no_cache' => Array (
00287                         'exclude' => 1,
00288                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.no_cache',
00289                         'config' => Array (
00290                                 'type' => 'check'
00291                         )
00292                 ),
00293                 'no_search' => Array (
00294                         'exclude' => 1,
00295                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.no_search',
00296                         'config' => Array (
00297                                 'type' => 'check'
00298                         )
00299                 ),
00300                 'shortcut' => Array (
00301                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.shortcut_page',
00302                         'config' => Array (
00303                                 'type' => 'group',
00304                                 'internal_type' => 'db',
00305                                         'allowed' => 'pages',
00306                                 'size' => '3',
00307                                 'maxitems' => '1',
00308                                 'minitems' => '0',
00309                                 'show_thumbs' => '1'
00310                         )
00311                 ),
00312                 'shortcut_mode' => Array (
00313                         'exclude' => 1,
00314                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.shortcut_mode',
00315                         'config' => Array (
00316                                 'type' => 'select',
00317                                 'items' => Array (
00318                                         Array('', 0),
00319                                         Array('LLL:EXT:cms/locallang_tca.php:pages.shortcut_mode.I.1', 1),
00320                                         Array('LLL:EXT:cms/locallang_tca.php:pages.shortcut_mode.I.2', 2),
00321                                 ),
00322                                 'default' => '0'
00323                         )
00324                 ),
00325                 'content_from_pid' => Array (
00326                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.content_from_pid',
00327                         'config' => Array (
00328                                 'type' => 'group',
00329                                 'internal_type' => 'db',
00330                                         'allowed' => 'pages',
00331                                 'size' => '1',
00332                                 'maxitems' => '1',
00333                                 'minitems' => '0',
00334                                 'show_thumbs' => '1'
00335                         )
00336                 ),
00337                 'mount_pid' => Array (
00338                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.mount_pid',
00339                         'config' => Array (
00340                                 'type' => 'group',
00341                                 'internal_type' => 'db',
00342                                         'allowed' => 'pages',
00343                                 'size' => '1',
00344                                 'maxitems' => '1',
00345                                 'minitems' => '0',
00346                                 'show_thumbs' => '1'
00347                         )
00348                 ),
00349                 'keywords' => Array (
00350                         'exclude' => 1,
00351                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.keywords',
00352                         'config' => Array (
00353                                 'type' => 'text',
00354                                 'cols' => '40',
00355                                 'rows' => '3'
00356                         )
00357                 ),
00358                 'description' => Array (
00359                         'exclude' => 1,
00360                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
00361                         'config' => Array (
00362                                 'type' => 'input',
00363                                 'size' => '40',
00364                                 'eval' => 'trim'
00365                         )
00366                 ),
00367                 'abstract' => Array (
00368                         'exclude' => 1,
00369                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.abstract',
00370                         'config' => Array (
00371                                 'type' => 'text',
00372                                 'cols' => '40',
00373                                 'rows' => '3'
00374                         )
00375                 ),
00376                 'author' => Array (
00377                         'exclude' => 1,
00378                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.author',
00379                         'config' => Array (
00380                                 'type' => 'input',
00381                                 'size' => '20',
00382                                 'eval' => 'trim',
00383                                 'max' => '80'
00384                         )
00385                 ),
00386                 'author_email' => Array (
00387                         'exclude' => 1,
00388                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
00389                         'config' => Array (
00390                                 'type' => 'input',
00391                                 'size' => '20',
00392                                 'eval' => 'trim',
00393                                 'max' => '80'
00394                         )
00395                 ),
00396                 'media' => Array (
00397                         'exclude' => 1,
00398                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.media',
00399                         'config' => Array (
00400                                 'type' => 'group',
00401                                 'internal_type' => 'file',
00402                                 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,txt,css',
00403                                 'max_size' => '2000',
00404                                 'uploadfolder' => 'uploads/media',
00405                                 'show_thumbs' => '1',
00406                                 'size' => '3',
00407                                 'maxitems' => '5',
00408                                 'minitems' => '0'
00409                         )
00410                 ),
00411                 'is_siteroot' => Array (
00412                         'exclude' => 1,
00413                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.is_siteroot',
00414                         'config' => Array (
00415                                 'type' => 'check'
00416                         )
00417                 ),
00418                 'mount_pid_ol' => Array (
00419                         'exclude' => 1,
00420                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.mount_pid_ol',
00421                         'config' => Array (
00422                                 'type' => 'check'
00423                         )
00424                 ),
00425                 'module' => Array (
00426                         'exclude' => 1,
00427                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.module',
00428                         'config' => Array (
00429                                 'type' => 'select',
00430                                 'items' => Array (
00431                                         Array('', ''),
00432                                         Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.1', 'shop'),
00433                                         Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.2', 'board'),
00434                                         Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.3', 'news'),
00435                                         Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.4', 'fe_users'),
00436                                         Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.5', 'dmail'),
00437                                         Array('LLL:EXT:cms/locallang_tca.php:pages.module.I.6', 'approve')
00438                                 ),
00439                                 'default' => ''
00440                         )
00441                 ),
00442                 'l18n_cfg' => Array (
00443                         'exclude' => 1,
00444                         'label' => 'LLL:EXT:cms/locallang_tca.php:pages.l18n_cfg',
00445                         'config' => Array (
00446                                 'type' => 'check',
00447                                 'items' => Array (
00448                                         Array('LLL:EXT:cms/locallang_tca.php:pages.l18n_cfg.I.1', ''),
00449                                         Array('LLL:EXT:cms/locallang_tca.php:pages.l18n_cfg.I.2', ''),
00450                                 ),
00451                         )
00452                 ),
00453         ));
00454 
00455                 // Add columns to info-display list.
00456         $TCA['pages']['interface']['showRecordFieldList'].=',alias,hidden,starttime,endtime,fe_group,url,target,no_cache,shortcut,keywords,description,abstract,newUntil,lastUpdated,cache_timeout';
00457 
00458                 // Setting main palette
00459         $TCA['pages']['ctrl']['mainpalette']='1';
00460 
00461                 // Totally overriding all type-settings:
00462         $TCA['pages']['types'] = Array (
00463                 '1' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg'),
00464                 '2' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, abstract;;5;;3-3-3, keywords, description, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid'),
00465                 '3' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, nav_hide, url;;;;3-3-3, urltype, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg'),
00466                 '4' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, nav_hide, shortcut;;;;3-3-3, shortcut_mode, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg'),
00467                 '5' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid'),
00468                 '7' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, mount_pid;;;;3-3-3, mount_pid_ol, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, module, content_from_pid'),
00469                 '199' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2, TSconfig;;6;nowrap;5-5-5, storage_pid;;7'),
00470                 '254' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title;;;2-2-2, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module'),
00471                 '255' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2')
00472         );
00473                 // Merging palette settings:
00474                 // t3lib_div::array_merge() MUST be used - otherwise the keys will be re-numbered!
00475         $TCA['pages']['palettes'] = t3lib_div::array_merge($TCA['pages']['palettes'],Array(
00476                 '1' => Array('showitem' => 'starttime,endtime,fe_group,extendToSubpages'),
00477                 '2' => Array('showitem' => 'layout, lastUpdated, newUntil, no_search'),
00478                 '3' => Array('showitem' => 'alias, target, no_cache, cache_timeout'),
00479                 '5' => Array('showitem' => 'author,author_email'),
00480         ));
00481 
00482 
00483 
00484 
00485 
00486 
00487 // ******************************************************************
00488 // This is the standard TypoScript content table, tt_content
00489 // ******************************************************************
00490 $TCA['tt_content'] = Array (
00491         'ctrl' => Array (
00492                 'label' => 'header',
00493                 'label_alt' => 'subheader,bodytext',
00494                 'sortby' => 'sorting',
00495                 'tstamp' => 'tstamp',
00496                 'title' => 'LLL:EXT:cms/locallang_tca.php:tt_content',
00497                 'delete' => 'deleted',
00498                 'versioning' => TRUE,
00499                 'versioning_followPages' => TRUE,
00500                 'type' => 'CType',
00501                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00502                 'copyAfterDuplFields' => 'colPos,sys_language_uid',
00503                 'useColumnsForDefaultValues' => 'colPos,sys_language_uid',
00504                 'transOrigPointerField' => 'l18n_parent',
00505                 'transOrigDiffSourceField' => 'l18n_diffsource',
00506                 'languageField' => 'sys_language_uid',
00507                 'enablecolumns' => Array (
00508                         'disabled' => 'hidden',
00509                         'starttime' => 'starttime',
00510                         'endtime' => 'endtime',
00511                         'fe_group' => 'fe_group',
00512                 ),
00513                 'typeicon_column' => 'CType',
00514                 'typeicons' => Array (
00515                         'header' => 'tt_content_header.gif',
00516                         'textpic' => 'tt_content_textpic.gif',
00517                         'image' => 'tt_content_image.gif',
00518                         'bullets' => 'tt_content_bullets.gif',
00519                         'table' => 'tt_content_table.gif',
00520                         'splash' => 'tt_content_news.gif',
00521                         'uploads' => 'tt_content_uploads.gif',
00522                         'multimedia' => 'tt_content_mm.gif',
00523                         'menu' => 'tt_content_menu.gif',
00524                         'list' => 'tt_content_list.gif',
00525                         'mailform' => 'tt_content_form.gif',
00526                         'search' => 'tt_content_search.gif',
00527                         'login' => 'tt_content_login.gif',
00528                         'shortcut' => 'tt_content_shortcut.gif',
00529                         'script' => 'tt_content_script.gif',
00530                         'div' => 'tt_content_div.gif',
00531                         'html' => 'tt_content_html.gif'
00532                 ),
00533                 'mainpalette' => '1',
00534                 'thumbnail' => 'image',
00535                 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_tt_content.php'
00536         )
00537 );
00538 
00539 // ******************************************************************
00540 // fe_users
00541 // ******************************************************************
00542 $TCA['fe_users'] = Array (
00543         'ctrl' => Array (
00544                 'label' => 'username',
00545                 'tstamp' => 'tstamp',
00546                 'crdate' => 'crdate',
00547                 'cruser_id' => 'cruser_id',
00548                 'fe_cruser_id' => 'fe_cruser_id',
00549                 'title' => 'LLL:EXT:cms/locallang_tca.php:fe_users',
00550                 'delete' => 'deleted',
00551                 'mainpalette' => '1',
00552                 'enablecolumns' => Array (
00553                         'disabled' => 'disable',
00554                         'starttime' => 'starttime',
00555                         'endtime' => 'endtime'
00556                 ),
00557                 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
00558                 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
00559         ),
00560         'feInterface' => Array (
00561                 'fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company',
00562         )
00563 );
00564 
00565 // ******************************************************************
00566 // fe_groups
00567 // ******************************************************************
00568 $TCA['fe_groups'] = Array (
00569         'ctrl' => Array (
00570                 'label' => 'title',
00571                 'tstamp' => 'tstamp',
00572                 'delete' => 'deleted',
00573                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00574                 'enablecolumns' => Array (
00575                         'disabled' => 'hidden'
00576                 ),
00577                 'title' => 'LLL:EXT:cms/locallang_tca.php:fe_groups',
00578                 'useColumnsForDefaultValues' => 'lockToDomain',
00579                 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
00580         )
00581 );
00582 
00583 // ******************************************************************
00584 // sys_domain
00585 // ******************************************************************
00586 $TCA['sys_domain'] = Array (
00587         'ctrl' => Array (
00588                 'label' => 'domainName',
00589                 'tstamp' => 'tstamp',
00590                 'sortby' => 'sorting',
00591                 'title' => 'LLL:EXT:cms/locallang_tca.php:sys_domain',
00592                 'iconfile' => 'domain.gif',
00593                 'enablecolumns' => Array (
00594                         'disabled' => 'hidden'
00595                 ),
00596                 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
00597         )
00598 );
00599 
00600 // ******************************************************************
00601 // pages_language_overlay
00602 // ******************************************************************
00603 $TCA['pages_language_overlay'] = Array (
00604         'ctrl' => Array (
00605                 'label' => 'title',
00606                 'tstamp' => 'tstamp',
00607                 'title' => 'LLL:EXT:cms/locallang_tca.php:pages_language_overlay',
00608                 'versioning' => TRUE,
00609                 'versioning_followPages' => TRUE,
00610                 'crdate' => 'crdate',
00611                 'cruser_id' => 'cruser_id',
00612                 'enablecolumns' => Array (
00613                         'disabled' => 'hidden',
00614                         'starttime' => 'starttime',
00615                         'endtime' => 'endtime'
00616                 ),
00617                 'transOrigPointerField' => 'pid',
00618                 'transOrigPointerTable' => 'pages',
00619                 'transOrigDiffSourceField' => 'l18n_diffsource',
00620                 'languageField' => 'sys_language_uid',
00621                 'mainpalette' => 1,
00622                 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
00623         )
00624 );
00625 
00626 
00627 // ******************************************************************
00628 // sys_template
00629 // ******************************************************************
00630 $TCA['sys_template'] = Array (
00631         'ctrl' => Array (
00632                 'label' => 'title',
00633                 'tstamp' => 'tstamp',
00634                 'sortby' => 'sorting',
00635                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00636                 'title' => 'LLL:EXT:cms/locallang_tca.php:sys_template',
00637                 'versioning' => TRUE,
00638                 'crdate' => 'crdate',
00639                 'cruser_id' => 'cruser_id',
00640                 'delete' => 'deleted',
00641                 'adminOnly' => 1,       // Only admin, if any
00642                 'iconfile' => 'template.gif',
00643                 'thumbnail' => 'resources',
00644                 'enablecolumns' => Array (
00645                         'disabled' => 'hidden',
00646                         'starttime' => 'starttime',
00647                         'endtime' => 'endtime'
00648                 ),
00649                 'typeicon_column' => 'root',
00650                 'typeicons' => Array (
00651                         '0' => 'template_add.gif'
00652                 ),
00653                 'mainpalette' => '1',
00654                 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
00655         )
00656 );
00657 
00658 // ******************************************************************
00659 // static_template
00660 // ******************************************************************
00661 $TCA['static_template'] = Array (
00662         'ctrl' => Array (
00663                 'label' => 'title',
00664                 'tstamp' => 'tstamp',
00665                 'title' => 'LLL:EXT:cms/locallang_tca.php:static_template',
00666                 'readOnly' => 1,        // This should always be true, as it prevents the static templates from being altered
00667                 'adminOnly' => 1,       // Only admin, if any
00668                 'rootLevel' => 1,
00669                 'is_static' => 1,
00670                 'default_sortby' => 'ORDER BY title',
00671                 'crdate' => 'crdate',
00672                 'iconfile' => 'template_standard.gif',
00673                 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
00674         )
00675 );
00676 
00677 ?>


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6