Documentation TYPO3 par Ameos

ext_tables.php

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


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