Documentation TYPO3 par Ameos

tbl_cms.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
00006 *  All rights reserved
00007 *
00008 *  This script is part of the TYPO3 project. The TYPO3 project is
00009 *  free software; you can redistribute it and/or modify
00010 *  it under the terms of the GNU General Public License as published by
00011 *  the Free Software Foundation; either version 2 of the License, or
00012 *  (at your option) any later version.
00013 *
00014 *  The GNU General Public License can be found at
00015 *  http://www.gnu.org/copyleft/gpl.html.
00016 *  A copy is found in the textfile GPL.txt and important notices to the license
00017 *  from the author is found in LICENSE.txt distributed with these scripts.
00018 *
00019 *
00020 *  This script is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023 *  GNU General Public License for more details.
00024 *
00025 *  This copyright notice MUST APPEAR in all copies of the script!
00026 ***************************************************************/
00039 // ******************************************************************
00040 // fe_users
00041 //
00042 // FrontEnd users - login on the website
00043 // ******************************************************************
00044 $TCA['fe_users'] = Array (
00045         'ctrl' => $TCA['fe_users']['ctrl'],
00046         'interface' => Array (
00047                 'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,title,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime'
00048         ),
00049         'feInterface' => $TCA['fe_users']['feInterface'],
00050         'columns' => Array (
00051                 'username' => Array (
00052                         'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.username',
00053                         'config' => Array (
00054                                 'type' => 'input',
00055                                 'size' => '20',
00056                                 'max' => '50',
00057                                 'eval' => 'nospace,lower,uniqueInPid,required'
00058                         )
00059                 ),
00060                 'password' => Array (
00061                         'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.password',
00062                         'config' => Array (
00063                                 'type' => 'input',
00064                                 'size' => '10',
00065                                 'max' => '40',
00066                                 'eval' => 'nospace,required,password'
00067                         )
00068                 ),
00069                 'usergroup' => Array (
00070                         'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.usergroup',
00071                         'config' => Array (
00072                                 'type' => 'select',
00073                                 'foreign_table' => 'fe_groups',
00074                                 'size' => '3',
00075                                 'minitems' => '1',
00076                                 'maxitems' => '50'
00077                         )
00078                 ),
00079                 'lockToDomain' => Array (
00080                         'exclude' => 1,
00081                         'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.lockToDomain',
00082                         'config' => Array (
00083                                 'type' => 'input',
00084                                 'size' => '20',
00085                                 'eval' => 'trim',
00086                                 'max' => '50',
00087                                 'checkbox' => '',
00088                                 'softref' => 'substitute'
00089                         )
00090                 ),
00091                 'name' => Array (
00092                         'exclude' => 1,
00093                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.name',
00094                         'config' => Array (
00095                                 'type' => 'input',
00096                                 'size' => '40',
00097                                 'eval' => 'trim',
00098                                 'max' => '80'
00099                         )
00100                 ),
00101                 'address' => Array (
00102                         'exclude' => 1,
00103                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.address',
00104                         'config' => Array (
00105                                 'type' => 'text',
00106                                 'cols' => '20',
00107                                 'rows' => '3'
00108                         )
00109                 ),
00110                 'telephone' => Array (
00111                         'exclude' => 1,
00112                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.phone',
00113                         'config' => Array (
00114                                 'type' => 'input',
00115                                 'eval' => 'trim',
00116                                 'size' => '20',
00117                                 'max' => '20'
00118                         )
00119                 ),
00120                 'fax' => Array (
00121                         'exclude' => 1,
00122                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fax',
00123                         'config' => Array (
00124                                 'type' => 'input',
00125                                 'size' => '20',
00126                                 'eval' => 'trim',
00127                                 'max' => '20'
00128                         )
00129                 ),
00130                 'email' => Array (
00131                         'exclude' => 1,
00132                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
00133                         'config' => Array (
00134                                 'type' => 'input',
00135                                 'size' => '40',
00136                                 'eval' => 'trim',
00137                                 'max' => '80'
00138                         )
00139                 ),
00140                 'title' => Array (
00141                         'exclude' => 1,
00142                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title_person',
00143                         'config' => Array (
00144                                 'type' => 'input',
00145                                 'size' => '20',
00146                                 'eval' => 'trim',
00147                                 'max' => '40'
00148                         )
00149                 ),
00150                 'zip' => Array (
00151                         'exclude' => 1,
00152                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.zip',
00153                         'config' => Array (
00154                                 'type' => 'input',
00155                                 'eval' => 'trim',
00156                                 'size' => '10',
00157                                 'max' => '10'
00158                         )
00159                 ),
00160                 'city' => Array (
00161                         'exclude' => 1,
00162                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.city',
00163                         'config' => Array (
00164                                 'type' => 'input',
00165                                 'size' => '20',
00166                                 'eval' => 'trim',
00167                                 'max' => '50'
00168                         )
00169                 ),
00170                 'country' => Array (
00171                         'exclude' => 1,
00172                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.country',
00173                         'config' => Array (
00174                                 'type' => 'input',
00175                                 'size' => '20',
00176                                 'eval' => 'trim',
00177                                 'max' => '40'
00178                         )
00179                 ),
00180                 'www' => Array (
00181                         'exclude' => 1,
00182                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.www',
00183                         'config' => Array (
00184                                 'type' => 'input',
00185                                 'eval' => 'trim',
00186                                 'size' => '20',
00187                                 'max' => '80'
00188                         )
00189                 ),
00190                 'company' => Array (
00191                         'exclude' => 1,
00192                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.company',
00193                         'config' => Array (
00194                                 'type' => 'input',
00195                                 'eval' => 'trim',
00196                                 'size' => '20',
00197                                 'max' => '80'
00198                         )
00199                 ),
00200                 'image' => Array (
00201                         'exclude' => 1,
00202                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.image',
00203                         'config' => Array (
00204                                 'type' => 'group',
00205                                 'internal_type' => 'file',
00206                                 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
00207                                 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
00208                                 'uploadfolder' => 'uploads/pics',
00209                                 'show_thumbs' => '1',
00210                                 'size' => '3',
00211                                 'maxitems' => '6',
00212                                 'minitems' => '0'
00213                         )
00214                 ),
00215                 'disable' => Array (
00216                         'exclude' => 1,
00217                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
00218                         'config' => Array (
00219                                 'type' => 'check'
00220                         )
00221                 ),
00222                 'starttime' => Array (
00223                         'exclude' => 1,
00224                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
00225                         'config' => Array (
00226                                 'type' => 'input',
00227                                 'size' => '8',
00228                                 'max' => '20',
00229                                 'eval' => 'date',
00230                                 'default' => '0',
00231                                 'checkbox' => '0'
00232                         )
00233                 ),
00234                 'endtime' => Array (
00235                         'exclude' => 1,
00236                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
00237                         'config' => Array (
00238                                 'type' => 'input',
00239                                 'size' => '8',
00240                                 'max' => '20',
00241                                 'eval' => 'date',
00242                                 'checkbox' => '0',
00243                                 'default' => '0',
00244                                 'range' => Array (
00245                                         'upper' => mktime(0,0,0,12,31,2020),
00246                                 )
00247                         )
00248                 ),
00249                 'TSconfig' => Array (
00250                         'exclude' => 1,
00251                         'label' => 'TSconfig:',
00252                         'config' => Array (
00253                                 'type' => 'text',
00254                                 'cols' => '40',
00255                                 'rows' => '5',
00256                                 'wizards' => Array(
00257                                         '_PADDING' => 4,
00258                                         '0' => Array(
00259 #                                               'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00260                                                 'title' => 'TSconfig QuickReference',
00261                                                 'script' => 'wizard_tsconfig.php?mode=fe_users',
00262                                                 'icon' => 'wizard_tsconfig.gif',
00263                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00264                                         )
00265                                 ),
00266                                 'softref' => 'TSconfig'
00267                         ),
00268                         'defaultExtras' => 'fixed-font : enable-tab',
00269                 )
00270         ),
00271         'types' => Array (
00272                 '0' => Array('showitem' => 'username;;;;2-2-2, password, usergroup, lockToDomain, --div--, name;;2;;3-3-3, address, zip, city, country, telephone, fax, email, www, image;;;;4-4-4, --div--, TSconfig;;;;5-5-5')
00273         ),
00274         'palettes' => Array (
00275                 '1' => Array('showitem' => 'disable, starttime, endtime'),
00276                 '2' => Array('showitem' => 'title,company')
00277         )
00278 );
00279 
00280 
00281 
00282 
00283 
00284 // ******************************************************************
00285 // fe_groups
00286 //
00287 // FrontEnd usergroups - Membership of these determines access to elements
00288 // ******************************************************************
00289 $TCA['fe_groups'] = Array (
00290         'ctrl' => $TCA['fe_groups']['ctrl'],
00291         'interface' => Array (
00292                 'showRecordFieldList' => 'title,hidden,subgroup,lockToDomain,description'
00293         ),
00294         'columns' => Array (
00295                 'hidden' => Array (
00296                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
00297                         'exclude' => 1,
00298                         'config' => Array (
00299                                 'type' => 'check',
00300                                 'default' => '0'
00301                         )
00302                 ),
00303                 'title' => Array (
00304                         'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.title',
00305                         'config' => Array (
00306                                 'type' => 'input',
00307                                 'size' => '20',
00308                                 'max' => '50',
00309                                 'eval' => 'trim,required'
00310                         )
00311                 ),
00312                 'subgroup' => Array (
00313                         'exclude' => 1,
00314                         'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.subgroup',
00315                         'config' => Array (
00316                                 'type' => 'select',
00317                                 'foreign_table' => 'fe_groups',
00318                                 'foreign_table_where' => 'AND NOT(fe_groups.uid = ###THIS_UID###) AND fe_groups.hidden=0 ORDER BY fe_groups.title',
00319                                 'size' => 4,
00320                                 'autoSizeMax' => 10,
00321                                 'minitems' => 0,
00322                                 'maxitems' => 20
00323                         )
00324                 ),
00325                 'lockToDomain' => Array (
00326                         'exclude' => 1,
00327                         'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.lockToDomain',
00328                         'config' => Array (
00329                                 'type' => 'input',
00330                                 'size' => '20',
00331                                 'eval' => 'trim',
00332                                 'max' => '50',
00333                                 'checkbox' => ''
00334                         )
00335                 ),
00336                 'description' => Array (
00337                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
00338                         'config' => Array (
00339                                 'type' => 'text',
00340                                 'rows' => 5,
00341                                 'cols' => 48
00342                         )
00343                 ),
00344                 'TSconfig' => Array (
00345                         'exclude' => 1,
00346                         'label' => 'TSconfig:',
00347                         'config' => Array (
00348                                 'type' => 'text',
00349                                 'cols' => '40',
00350                                 'rows' => '5',
00351                                 'wizards' => Array(
00352                                         '_PADDING' => 4,
00353                                         '0' => Array(
00354 #                                               'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00355                                                 'title' => 'TSconfig QuickReference',
00356                                                 'script' => 'wizard_tsconfig.php?mode=fe_users',
00357                                                 'icon' => 'wizard_tsconfig.gif',
00358                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00359                                         )
00360                                 ),
00361                                 'softref' => 'TSconfig'
00362                         ),
00363                         'defaultExtras' => 'fixed-font : enable-tab',
00364                 )
00365         ),
00366         'types' => Array (
00367                 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,lockToDomain,description;;;;3-3-3, --div--, TSconfig;;;;5-5-5, subgroup;;;;6-6-6')
00368         )
00369 );
00370 
00371 
00372 
00373 
00374 // ******************************************************************
00375 // sys_domain
00376 // ******************************************************************
00377 $TCA['sys_domain'] = Array (
00378         'ctrl' => $TCA['sys_domain']['ctrl'],
00379         'interface' => Array (
00380                 'showRecordFieldList' => 'hidden,domainName,redirectTo'
00381         ),
00382         'columns' => Array (
00383                 'domainName' => Array (
00384                         'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.domainName',
00385                         'config' => Array (
00386                                 'type' => 'input',
00387                                 'size' => '35',
00388                                 'max' => '80',
00389                                 'eval' => 'required,unique,lower,trim',
00390                                 'softref' => 'substitute'
00391                         ),
00392                 ),
00393                 'redirectTo' => Array (
00394                         'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.redirectTo',
00395                         'config' => Array (
00396                                 'type' => 'input',
00397                                 'size' => '35',
00398                                 'max' => '120',
00399                                 'checkbox' => '',
00400                                 'default' => '',
00401                                 'eval' => 'trim',
00402                                 'softref' => 'substitute'
00403                         ),
00404                 ),
00405                 'hidden' => Array (
00406                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
00407                         'exclude' => 1,
00408                         'config' => Array (
00409                                 'type' => 'check',
00410                                 'default' => '0'
00411                         )
00412                 ),
00413                 'prepend_params' => Array (
00414                         'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.prepend_params',
00415                         'exclude' => 1,
00416                         'config' => Array (
00417                                 'type' => 'check',
00418                                 'default' => '0'
00419                         )
00420                 )
00421         ),
00422         'types' => Array (
00423                 '1' => Array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params')
00424         ),
00425         'palettes' => Array (
00426                 '1' => Array('showitem' => 'redirectTo')
00427         )
00428 );
00429 
00430 
00431 
00432 
00433 
00434 // ******************************************************************
00435 // pages_language_overlay
00436 // ******************************************************************
00437 $TCA['pages_language_overlay'] = Array (
00438         'ctrl' => $TCA['pages_language_overlay']['ctrl'],
00439         'interface' => Array (
00440                 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
00441         ),
00442         'columns' => Array (
00443                 'hidden' => Array (
00444                         'exclude' => 1,
00445                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
00446                         'config' => Array (
00447                                 'type' => 'check',
00448                                 'default' => '0'
00449                         )
00450                 ),
00451                 'starttime' => Array (
00452                         'exclude' => 1,
00453                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
00454                         'config' => Array (
00455                                 'type' => 'input',
00456                                 'size' => '8',
00457                                 'max' => '20',
00458                                 'eval' => 'date',
00459                                 'checkbox' => '0',
00460                                 'default' => '0'
00461                         )
00462                 ),
00463                 'endtime' => Array (
00464                         'exclude' => 1,
00465                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
00466                         'config' => Array (
00467                                 'type' => 'input',
00468                                 'size' => '8',
00469                                 'max' => '20',
00470                                 'eval' => 'date',
00471                                 'checkbox' => '0',
00472                                 'default' => '0',
00473                                 'range' => Array (
00474                                         'upper' => mktime(0,0,0,12,31,2020),
00475                                 )
00476                         )
00477                 ),
00478                 'title' => Array (
00479                         'l10n_mode' => 'prefixLangTitle',
00480                         'label' => $TCA['pages']['columns']['title']['label'],
00481                         'l10n_cat' => 'text',
00482                         'config' => Array (
00483                                 'type' => 'input',
00484                                 'size' => '30',
00485                                 'max' => '256',
00486                                 'eval' => 'required'
00487                         )
00488                 ),
00489                 'subtitle' => Array (
00490                         'exclude' => 1,
00491                         'l10n_cat' => 'text',
00492                         'label' => $TCA['pages']['columns']['subtitle']['label'],
00493                         'config' => Array (
00494                                 'type' => 'input',
00495                                 'size' => '30',
00496                                 'max' => '256',
00497                                 'eval' => ''
00498                         )
00499                 ),
00500                 'nav_title' => Array (
00501                         'exclude' => 1,
00502                         'l10n_cat' => 'text',
00503                         'label' => $TCA['pages']['columns']['nav_title']['label'],
00504                         'config' => Array (
00505                                 'type' => 'input',
00506                                 'size' => '30',
00507                                 'max' => '256',
00508                                 'checkbox' => '',
00509                                 'eval' => 'trim'
00510                         )
00511                 ),
00512                 'keywords' => Array (
00513                         'exclude' => 1,
00514                         'label' => $TCA['pages']['columns']['keywords']['label'],
00515                         'config' => Array (
00516                                 'type' => 'text',
00517                                 'cols' => '40',
00518                                 'rows' => '3'
00519                         )
00520                 ),
00521                 'description' => Array (
00522                         'exclude' => 1,
00523                         'label' => $TCA['pages']['columns']['description']['label'],
00524                         'config' => Array (
00525                                 'type' => 'input',
00526                                 'size' => '40',
00527                                 'eval' => 'trim'
00528                         )
00529                 ),
00530                 'abstract' => Array (
00531                         'exclude' => 1,
00532                         'label' => $TCA['pages']['columns']['abstract']['label'],
00533                         'config' => Array (
00534                                 'type' => 'text',
00535                                 'cols' => '40',
00536                                 'rows' => '3'
00537                         )
00538                 ),
00539                 'author' => Array (
00540                         'exclude' => 1,
00541                         'label' => $TCA['pages']['columns']['author']['label'],
00542                         'config' => Array (
00543                                 'type' => 'input',
00544                                 'size' => '20',
00545                                 'eval' => 'trim',
00546                                 'max' => '80'
00547                         )
00548                 ),
00549                 'author_email' => Array (
00550                         'exclude' => 1,
00551                         'label' => $TCA['pages']['columns']['author_email']['label'],
00552                         'config' => Array (
00553                                 'type' => 'input',
00554                                 'size' => '20',
00555                                 'eval' => 'trim',
00556                                 'max' => '80'
00557                         )
00558                 ),
00559                 'media' => Array (
00560                         'exclude' => 1,
00561                         'label' => $TCA['pages']['columns']['media']['label'],
00562                         'config' => Array (
00563                                 'type' => 'group',
00564                                 'internal_type' => 'file',
00565                                 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
00566                                 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
00567                                 'uploadfolder' => 'uploads/media',
00568                                 'show_thumbs' => '1',
00569                                 'size' => '3',
00570                                 'maxitems' => '5',
00571                                 'minitems' => '0'
00572                         )
00573                 ),
00574                 'sys_language_uid' => Array (
00575                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
00576                         'config' => Array (
00577                                 'type' => 'select',
00578                                 'foreign_table' => 'sys_language',
00579                                 'foreign_table_where' => 'ORDER BY sys_language.title',
00580                                 'items' => Array(
00581                                         Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
00582                                 )
00583                         )
00584                 ),
00585                 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
00586                 'l18n_diffsource' => Array('config'=>array('type'=>'passthrough')),
00587                 't3ver_label' => Array (
00588                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
00589                         'config' => Array (
00590                                 'type' => 'input',
00591                                 'size' => '30',
00592                                 'max' => '30',
00593                         )
00594                 ),
00595         ),
00596         'types' => Array (
00597                 '0' => Array('showitem' => 'hidden;;;;1-1-1, sys_language_uid, title;;;;2-2-2, subtitle, nav_title, --div--, abstract;;5;;3-3-3, keywords, description, media;;;;4-4-4')
00598         ),
00599         'palettes' => Array (
00600                 '1' => Array('showitem' => 'starttime,endtime'),
00601                 '5' => Array('showitem' => 'author,author_email')
00602         )
00603 );
00604 
00605 
00606 
00607 // ******************************************************************
00608 // sys_template
00609 // ******************************************************************
00610 $TCA['sys_template'] = Array (
00611         'ctrl' => $TCA['sys_template']['ctrl'],
00612         'interface' => Array (
00613                 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
00614         ),
00615         'columns' => Array (
00616                 'title' => Array (
00617                         'label' => 'Template title:',
00618                         'config' => Array (
00619                                 'type' => 'input',
00620                                 'size' => '25',
00621                                 'max' => '256',
00622                                 'eval' => 'required'
00623                         )
00624                 ),
00625                 'hidden' => Array (
00626                         'label' => 'Deactivated:',
00627                         'exclude' => 1,
00628                         'config' => Array (
00629                                 'type' => 'check',
00630                                 'default' => '0'
00631                         )
00632                 ),
00633                 'starttime' => Array (
00634                         'label' => 'Start:',
00635                         'exclude' => 1,
00636                         'config' => Array (
00637                                 'type' => 'input',
00638                                 'size' => '8',
00639                                 'max' => '20',
00640                                 'eval' => 'date',
00641                                 'checkbox' => '0',
00642                                 'default' => '0'
00643                         )
00644                 ),
00645                 'endtime' => Array (
00646                         'label' => 'Stop:',
00647                         'exclude' => 1,
00648                         'config' => Array (
00649                                 'type' => 'input',
00650                                 'size' => '8',
00651                                 'max' => '20',
00652                                 'eval' => 'date',
00653                                 'checkbox' => '0',
00654                                 'default' => '0',
00655                                 'range' => Array (
00656                                         'upper' => mktime(0,0,0,12,31,2020),
00657                                 )
00658                         )
00659                 ),
00660                 'root' => Array (
00661                         'label' => 'Rootlevel:',
00662                         'config' => Array (
00663                                 'type' => 'check'
00664                         )
00665                 ),
00666                 'clear' => Array (
00667                         'label' => 'Clear:',
00668                         'config' => Array (
00669                                 'type' => 'check',
00670                                 'items' => Array (
00671                                         Array('Constants', ''),
00672                                         Array('Setup', '')
00673                                 ),
00674                                 'cols' => 2
00675                         )
00676                 ),
00677                 'sitetitle' => Array (
00678                         'label' => 'Website title:',
00679                         'config' => Array (
00680                                 'type' => 'input',
00681                                 'size' => '25',
00682                                 'max' => '256'
00683                         )
00684                 ),
00685                 'constants' => Array (
00686                         'label' => 'Constants:',
00687                         'config' => Array (
00688                                 'type' => 'text',
00689                                 'cols' => '48',
00690                                 'rows' => '10',
00691                                 'wrap' => 'OFF',
00692                                 'softref' => 'TStemplate,email[subst],url[subst]'
00693                         ),
00694                         'defaultExtras' => 'fixed-font : enable-tab',
00695                 ),
00696                 'resources' => Array (
00697                         'label' => 'Resources:',
00698                         'config' => Array (
00699                                 'type' => 'group',
00700                                 'internal_type' => 'file',
00701                                 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico,js',
00702                                 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
00703                                 'uploadfolder' => 'uploads/tf',
00704                                 'show_thumbs' => '1',
00705                                 'size' => '7',
00706                                 'maxitems' => '100',
00707                                 'minitems' => '0'
00708                         )
00709                 ),
00710                 'nextLevel' => Array (
00711                         'label' => 'Template on next level:',
00712                         'config' => Array (
00713                                 'type' => 'group',
00714                                 'internal_type' => 'db',
00715                                 'allowed' => 'sys_template',
00716                                 'show_thumbs' => '1',
00717                                 'size' => '3',
00718                                 'maxitems' => '1',
00719                                 'minitems' => '0',
00720                                 'default' => ''
00721                         )
00722                 ),
00723                 'include_static' => Array (
00724                         'label' => 'Include static:',
00725                         'config' => Array (
00726                                 'type' => 'select',
00727                                 'foreign_table' => 'static_template',
00728                                 'foreign_table_where' => 'ORDER BY static_template.title DESC',
00729                                 'size' => 10,
00730                                 'maxitems' => 20,
00731                                 'default' => '',
00732                         ),
00733                 ),
00734                 'include_static_file' => Array(
00735                         'label' => 'Include static (from extensions):',
00736                         'config' => Array (
00737                                 'type' => 'select',
00738                                 'size' => 10,
00739                                 'maxitems' => 20,
00740                                 'items' => Array (
00741                                 ),
00742                                 'softref' => 'ext_fileref'
00743                         )
00744                 ),
00745                 'basedOn' => Array (
00746                         'label' => 'Include basis template:',
00747                         'config' => Array (
00748                                 'type' => 'group',
00749                                 'internal_type' => 'db',
00750                                 'allowed' => 'sys_template',
00751                                 'show_thumbs' => '1',
00752                                 'size' => '3',
00753                                 'maxitems' => '50',
00754                                 'autoSizeMax' => 10,
00755                                 'minitems' => '0',
00756                                 'default' => '',
00757                                 'wizards' => Array(
00758                                         '_PADDING' => 4,
00759                                         '_VERTICAL' => 1,
00760                                         'edit' => Array(
00761                                                 'type' => 'popup',
00762                                                 'title' => 'Edit filemount',
00763                                                 'script' => 'wizard_edit.php',
00764                                                 'popup_onlyOpenIfSelected' => 1,
00765                                                 'icon' => 'edit2.gif',
00766                                                 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
00767                                         ),
00768                                         'add' => Array(
00769                                                 'type' => 'script',
00770                                                 'title' => 'Add new basis template',
00771                                                 'icon' => 'add.gif',
00772                                                 'params' => Array(
00773                                                         'table'=>'sys_template',
00774                                                         'pid' => '###CURRENT_PID###',
00775                                                         'setValue' => 'prepend'
00776                                                 ),
00777                                                 'script' => 'wizard_add.php',
00778                                         )
00779                                 )
00780                         )
00781                 ),
00782                 'includeStaticAfterBasedOn' => Array (
00783                         'label' => 'Include static AFTER basedOn:',
00784                         'exclude' => 1,
00785                         'config' => Array (
00786                                 'type' => 'check',
00787                                 'default' => '0'
00788                         )
00789                 ),
00790                 'config' => Array (
00791                         'label' => 'Setup:',
00792                         'config' => Array (
00793                                 'type' => 'text',
00794                                 'rows' => 10,
00795                                 'cols' => 48,
00796                                 'wizards' => Array(
00797                                         '_PADDING' => 4,
00798                                         '0' => Array(
00799 #                                               'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00800                                                 'title' => 'TSref online',
00801                                                 'script' => 'wizard_tsconfig.php?mode=tsref',
00802                                                 'icon' => 'wizard_tsconfig.gif',
00803                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00804                                         )
00805                                 ),
00806                                 'wrap' => 'OFF',
00807                                 'softref' => 'TStemplate,email[subst],url[subst]'
00808                         ),
00809                         'defaultExtras' => 'fixed-font : enable-tab',
00810                 ),
00811                 'editorcfg' => Array (
00812                         'label' => 'Backend Editor Configuration:',
00813                         'config' => Array (
00814                                 'type' => 'text',
00815                                 'rows' => 4,
00816                                 'cols' => 48,
00817                                 'wrap' => 'OFF'
00818                         ),
00819                         'defaultExtras' => 'fixed-font : enable-tab',
00820                 ),
00821                 'description' => Array (
00822                         'label' => 'Description:',
00823                         'config' => Array (
00824                                 'type' => 'text',
00825                                 'rows' => 10,
00826                                 'cols' => 48
00827                         )
00828                 ),
00829                 'static_file_mode' => Array (
00830                         'label' => 'Static template files from T3 Extensions:',
00831                         'config' => Array (
00832                                 'type' => 'select',
00833                                 'items' => Array (
00834                                         Array('Default (Include before if Root-flag is set)', '0'),
00835                                         Array('Always include before this template record', '1'),
00836                                         Array('Never include before this template record', '2'),
00837                                 ),
00838                                 'default' => '0'
00839                         )
00840                 ),
00841                 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
00842                 't3ver_label' => Array (
00843                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
00844                         'config' => Array (
00845                                 'type' => 'input',
00846                                 'size' => '30',
00847                                 'max' => '30',
00848                         )
00849                 ),
00850         ),
00851         'types' => Array (
00852                 '1' => Array('showitem' => 'title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, resources, clear, root, --div--, include_static;;2;;5-5-5, include_static_file;;2, basedOn;;2, static_file_mode, nextLevel, --div--, description;;;;5-5-5, editorcfg')
00853         ),
00854         'palettes' => Array (
00855                 '1' => Array('showitem' => 'hidden,starttime,endtime'),
00856                 '2' => Array('showitem' => 'includeStaticAfterBasedOn')
00857         )
00858 );
00859 
00860 
00861 
00862 
00863 
00864 // ******************************************************************
00865 // static_template
00866 // ******************************************************************
00867 $TCA['static_template'] = Array (
00868         'ctrl' => $TCA['static_template']['ctrl'],
00869         'interface' => Array (
00870                 'showRecordFieldList' => 'title,include_static,description'
00871         ),
00872         'columns' => Array (
00873                 'title' => Array (
00874                         'label' => 'Template title:',
00875                         'config' => Array (
00876                                 'type' => 'input',
00877                                 'size' => '25',
00878                                 'max' => '256',
00879                                 'eval' => 'required'
00880                         )
00881                 ),
00882                 'constants' => Array (
00883                         'label' => 'Constants:',
00884                         'config' => Array (
00885                                 'type' => 'text',
00886                                 'cols' => '48',
00887                                 'rows' => '10',
00888                                 'wrap' => 'OFF'
00889                         ),
00890                         'defaultExtras' => 'fixed-font : enable-tab',
00891                 ),
00892                 'include_static' => Array (
00893                         'label' => 'Include static:',
00894                         'config' => Array (
00895                                 'type' => 'select',
00896                                 'foreign_table' => 'static_template',
00897                                 'foreign_table_where' => 'ORDER BY static_template.title',
00898                                 'size' => 10,
00899                                 'maxitems' => 20,
00900                                 'default' => ''
00901                         )
00902                 ),
00903                 'config' => Array (
00904                         'label' => 'Setup:',
00905                         'config' => Array (
00906                                 'type' => 'text',
00907                                 'rows' => 10,
00908                                 'cols' => 48,
00909                                 'wrap' => 'OFF'
00910                         ),
00911                         'defaultExtras' => 'fixed-font : enable-tab',
00912                 ),
00913                 'editorcfg' => Array (
00914                         'label' => 'Backend Editor Configuration:',
00915                         'config' => Array (
00916                                 'type' => 'text',
00917                                 'rows' => 4,
00918                                 'cols' => 48,
00919                                 'wrap' => 'OFF'
00920                         ),
00921                         'defaultExtras' => 'fixed-font : enable-tab',
00922                 ),
00923                 'description' => Array (
00924                         'label' => 'Description:',
00925                         'config' => Array (
00926                                 'type' => 'text',
00927                                 'rows' => 10,
00928                                 'cols' => 48
00929                         )
00930                 )
00931         ),
00932         'types' => Array (
00933                 '1' => Array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
00934         )
00935 );
00936 
00937 
00938 
00939 ?>


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6