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