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' => '1000',
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' => '20',
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' => '1'
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                         'label' => $TCA['pages']['columns']['title']['label'],
00480                         'l10n_cat' => 'text',
00481                         'config' => Array (
00482                                 'type' => 'input',
00483                                 'size' => '30',
00484                                 'max' => '256',
00485                                 'eval' => 'required'
00486                         )
00487                 ),
00488                 'subtitle' => Array (
00489                         'exclude' => 1,
00490                         'l10n_cat' => 'text',
00491                         'label' => $TCA['pages']['columns']['subtitle']['label'],
00492                         'config' => Array (
00493                                 'type' => 'input',
00494                                 'size' => '30',
00495                                 'max' => '256',
00496                                 'eval' => ''
00497                         )
00498                 ),
00499                 'nav_title' => Array (
00500                         'exclude' => 1,
00501                         'l10n_cat' => 'text',
00502                         'label' => $TCA['pages']['columns']['nav_title']['label'],
00503                         'config' => Array (
00504                                 'type' => 'input',
00505                                 'size' => '30',
00506                                 'max' => '256',
00507                                 'checkbox' => '',
00508                                 'eval' => 'trim'
00509                         )
00510                 ),
00511                 'keywords' => Array (
00512                         'exclude' => 1,
00513                         'label' => $TCA['pages']['columns']['keywords']['label'],
00514                         'config' => Array (
00515                                 'type' => 'text',
00516                                 'cols' => '40',
00517                                 'rows' => '3'
00518                         )
00519                 ),
00520                 'description' => Array (
00521                         'exclude' => 1,
00522                         'label' => $TCA['pages']['columns']['description']['label'],
00523                         'config' => Array (
00524                                 'type' => 'input',
00525                                 'size' => '40',
00526                                 'eval' => 'trim'
00527                         )
00528                 ),
00529                 'abstract' => Array (
00530                         'exclude' => 1,
00531                         'label' => $TCA['pages']['columns']['abstract']['label'],
00532                         'config' => Array (
00533                                 'type' => 'text',
00534                                 'cols' => '40',
00535                                 'rows' => '3'
00536                         )
00537                 ),
00538                 'author' => Array (
00539                         'exclude' => 1,
00540                         'label' => $TCA['pages']['columns']['author']['label'],
00541                         'config' => Array (
00542                                 'type' => 'input',
00543                                 'size' => '20',
00544                                 'eval' => 'trim',
00545                                 'max' => '80'
00546                         )
00547                 ),
00548                 'author_email' => Array (
00549                         'exclude' => 1,
00550                         'label' => $TCA['pages']['columns']['author_email']['label'],
00551                         'config' => Array (
00552                                 'type' => 'input',
00553                                 'size' => '20',
00554                                 'eval' => 'trim',
00555                                 'max' => '80'
00556                         )
00557                 ),
00558                 'media' => Array (
00559                         'exclude' => 1,
00560                         'label' => $TCA['pages']['columns']['media']['label'],
00561                         'config' => Array (
00562                                 'type' => 'group',
00563                                 'internal_type' => 'file',
00564                                 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
00565                                 'max_size' => '2000',
00566                                 'uploadfolder' => 'uploads/media',
00567                                 'show_thumbs' => '1',
00568                                 'size' => '3',
00569                                 'maxitems' => '5',
00570                                 'minitems' => '0'
00571                         )
00572                 ),
00573                 'sys_language_uid' => Array (
00574                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
00575                         'config' => Array (
00576                                 'type' => 'select',
00577                                 'foreign_table' => 'sys_language',
00578                                 'foreign_table_where' => 'ORDER BY sys_language.title',
00579                                 'items' => Array(
00580                                         Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
00581                                 )
00582                         )
00583                 ),
00584                 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
00585                 'l18n_diffsource' => Array('config'=>array('type'=>'passthrough')),
00586                 't3ver_label' => Array (
00587                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
00588                         'config' => Array (
00589                                 'type' => 'input',
00590                                 'size' => '30',
00591                                 'max' => '30',
00592                         )
00593                 ),
00594         ),
00595         'types' => Array (
00596                 '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')
00597         ),
00598         'palettes' => Array (
00599                 '1' => Array('showitem' => 'starttime,endtime'),
00600                 '5' => Array('showitem' => 'author,author_email')
00601         )
00602 );
00603 
00604 
00605 
00606 // ******************************************************************
00607 // sys_template
00608 // ******************************************************************
00609 $TCA['sys_template'] = Array (
00610         'ctrl' => $TCA['sys_template']['ctrl'],
00611         'interface' => Array (
00612                 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
00613         ),
00614         'columns' => Array (
00615                 'title' => Array (
00616                         'label' => 'Template title:',
00617                         'config' => Array (
00618                                 'type' => 'input',
00619                                 'size' => '25',
00620                                 'max' => '256',
00621                                 'eval' => 'required'
00622                         )
00623                 ),
00624                 'hidden' => Array (
00625                         'label' => 'Deactivated:',
00626                         'exclude' => 1,
00627                         'config' => Array (
00628                                 'type' => 'check',
00629                                 'default' => '0'
00630                         )
00631                 ),
00632                 'starttime' => Array (
00633                         'label' => 'Start:',
00634                         'exclude' => 1,
00635                         'config' => Array (
00636                                 'type' => 'input',
00637                                 'size' => '8',
00638                                 'max' => '20',
00639                                 'eval' => 'date',
00640                                 'checkbox' => '0',
00641                                 'default' => '0'
00642                         )
00643                 ),
00644                 'endtime' => Array (
00645                         'label' => 'Stop:',
00646                         'exclude' => 1,
00647                         'config' => Array (
00648                                 'type' => 'input',
00649                                 'size' => '8',
00650                                 'max' => '20',
00651                                 'eval' => 'date',
00652                                 'checkbox' => '0',
00653                                 'default' => '0',
00654                                 'range' => Array (
00655                                         'upper' => mktime(0,0,0,12,31,2020),
00656                                 )
00657                         )
00658                 ),
00659                 'root' => Array (
00660                         'label' => 'Rootlevel:',
00661                         'config' => Array (
00662                                 'type' => 'check'
00663                         )
00664                 ),
00665                 'clear' => Array (
00666                         'label' => 'Clear:',
00667                         'config' => Array (
00668                                 'type' => 'check',
00669                                 'items' => Array (
00670                                         Array('Constants', ''),
00671                                         Array('Setup', '')
00672                                 ),
00673                                 'cols' => 2
00674                         )
00675                 ),
00676                 'sitetitle' => Array (
00677                         'label' => 'Website title:',
00678                         'config' => Array (
00679                                 'type' => 'input',
00680                                 'size' => '25',
00681                                 'max' => '256'
00682                         )
00683                 ),
00684                 'constants' => Array (
00685                         'label' => 'Constants:',
00686                         'config' => Array (
00687                                 'type' => 'text',
00688                                 'cols' => '48',
00689                                 'rows' => '10',
00690                                 'wrap' => 'OFF',
00691                                 'softref' => 'TStemplate,email[subst],url[subst]'
00692                         ),
00693                         'defaultExtras' => 'fixed-font : enable-tab',
00694                 ),
00695                 'resources' => Array (
00696                         'label' => 'Resources:',
00697                         'config' => Array (
00698                                 'type' => 'group',
00699                                 'internal_type' => 'file',
00700                                 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico,js',
00701                                 'max_size' => '1000',
00702                                 'uploadfolder' => 'uploads/tf',
00703                                 'show_thumbs' => '1',
00704                                 'size' => '7',
00705                                 'maxitems' => '100',
00706                                 'minitems' => '0'
00707                         )
00708                 ),
00709                 'nextLevel' => Array (
00710                         'label' => 'Template on next level:',
00711                         'config' => Array (
00712                                 'type' => 'group',
00713                                 'internal_type' => 'db',
00714                                 'allowed' => 'sys_template',
00715                                 'show_thumbs' => '1',
00716                                 'size' => '3',
00717                                 'maxitems' => '1',
00718                                 'minitems' => '0',
00719                                 'default' => ''
00720                         )
00721                 ),
00722                 'include_static' => Array (
00723                         'label' => 'Include static:',
00724                         'config' => Array (
00725                                 'type' => 'select',
00726                                 'foreign_table' => 'static_template',
00727                                 'foreign_table_where' => 'ORDER BY static_template.title DESC',
00728                                 'size' => 10,
00729                                 'maxitems' => 20,
00730                                 'default' => '',
00731                         ),
00732                 ),
00733                 'include_static_file' => Array(
00734                         'label' => 'Include static (from extensions):',
00735                         'config' => Array (
00736                                 'type' => 'select',
00737                                 'size' => 10,
00738                                 'maxitems' => 20,
00739                                 'items' => Array (
00740                                 ),
00741                                 'softref' => 'ext_fileref'
00742                         )
00743                 ),
00744                 'basedOn' => Array (
00745                         'label' => 'Include basis template:',
00746                         'config' => Array (
00747                                 'type' => 'group',
00748                                 'internal_type' => 'db',
00749                                 'allowed' => 'sys_template',
00750                                 'show_thumbs' => '1',
00751                                 'size' => '3',
00752                                 'maxitems' => '50',
00753                                 'autoSizeMax' => 10,
00754                                 'minitems' => '0',
00755                                 'default' => '',
00756                                 'wizards' => Array(
00757                                         '_PADDING' => 4,
00758                                         '_VERTICAL' => 1,
00759                                         'edit' => Array(
00760                                                 'type' => 'popup',
00761                                                 'title' => 'Edit filemount',
00762                                                 'script' => 'wizard_edit.php',
00763                                                 'popup_onlyOpenIfSelected' => 1,
00764                                                 'icon' => 'edit2.gif',
00765                                                 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
00766                                         ),
00767                                         'add' => Array(
00768                                                 'type' => 'script',
00769                                                 'title' => 'Add new basis template',
00770                                                 'icon' => 'add.gif',
00771                                                 'params' => Array(
00772                                                         'table'=>'sys_template',
00773                                                         'pid' => '###CURRENT_PID###',
00774                                                         'setValue' => 'prepend'
00775                                                 ),
00776                                                 'script' => 'wizard_add.php',
00777                                         )
00778                                 )
00779                         )
00780                 ),
00781                 'includeStaticAfterBasedOn' => Array (
00782                         'label' => 'Include static AFTER basedOn:',
00783                         'exclude' => 1,
00784                         'config' => Array (
00785                                 'type' => 'check',
00786                                 'default' => '0'
00787                         )
00788                 ),
00789                 'config' => Array (
00790                         'label' => 'Setup:',
00791                         'config' => Array (
00792                                 'type' => 'text',
00793                                 'rows' => 10,
00794                                 'cols' => 48,
00795                                 'wizards' => Array(
00796                                         '_PADDING' => 4,
00797                                         '0' => Array(
00798 #                                               'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00799                                                 'title' => 'TSref online',
00800                                                 'script' => 'wizard_tsconfig.php?mode=tsref',
00801                                                 'icon' => 'wizard_tsconfig.gif',
00802                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00803                                         )
00804                                 ),
00805                                 'wrap' => 'OFF',
00806                                 'softref' => 'TStemplate,email[subst],url[subst]'
00807                         ),
00808                         'defaultExtras' => 'fixed-font : enable-tab',
00809                 ),
00810                 'editorcfg' => Array (
00811                         'label' => 'Backend Editor Configuration:',
00812                         'config' => Array (
00813                                 'type' => 'text',
00814                                 'rows' => 4,
00815                                 'cols' => 48,
00816                                 'wrap' => 'OFF'
00817                         ),
00818                         'defaultExtras' => 'fixed-font : enable-tab',
00819                 ),
00820                 'description' => Array (
00821                         'label' => 'Description:',
00822                         'config' => Array (
00823                                 'type' => 'text',
00824                                 'rows' => 10,
00825                                 'cols' => 48
00826                         )
00827                 ),
00828                 'static_file_mode' => Array (
00829                         'label' => 'Static template files from T3 Extensions:',
00830                         'config' => Array (
00831                                 'type' => 'select',
00832                                 'items' => Array (
00833                                         Array('Default (Include before if Root-flag is set)', '0'),
00834                                         Array('Always include before this template record', '1'),
00835                                         Array('Never include before this template record', '2'),
00836                                 ),
00837                                 'default' => '0'
00838                         )
00839                 ),
00840                 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
00841                 't3ver_label' => Array (
00842                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
00843                         'config' => Array (
00844                                 'type' => 'input',
00845                                 'size' => '30',
00846                                 'max' => '30',
00847                         )
00848                 ),
00849         ),
00850         'types' => Array (
00851                 '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')
00852         ),
00853         'palettes' => Array (
00854                 '1' => Array('showitem' => 'hidden,starttime,endtime'),
00855                 '2' => Array('showitem' => 'includeStaticAfterBasedOn')
00856         )
00857 );
00858 
00859 
00860 
00861 
00862 
00863 // ******************************************************************
00864 // static_template
00865 // ******************************************************************
00866 $TCA['static_template'] = Array (
00867         'ctrl' => $TCA['static_template']['ctrl'],
00868         'interface' => Array (
00869                 'showRecordFieldList' => 'title,include_static,description'
00870         ),
00871         'columns' => Array (
00872                 'title' => Array (
00873                         'label' => 'Template title:',
00874                         'config' => Array (
00875                                 'type' => 'input',
00876                                 'size' => '25',
00877                                 'max' => '256',
00878                                 'eval' => 'required'
00879                         )
00880                 ),
00881                 'constants' => Array (
00882                         'label' => 'Constants:',
00883                         'config' => Array (
00884                                 'type' => 'text',
00885                                 'cols' => '48',
00886                                 'rows' => '10',
00887                                 'wrap' => 'OFF'
00888                         ),
00889                         'defaultExtras' => 'fixed-font : enable-tab',
00890                 ),
00891                 'include_static' => Array (
00892                         'label' => 'Include static:',
00893                         'config' => Array (
00894                                 'type' => 'select',
00895                                 'foreign_table' => 'static_template',
00896                                 'foreign_table_where' => 'ORDER BY static_template.title',
00897                                 'size' => 10,
00898                                 'maxitems' => 20,
00899                                 'default' => ''
00900                         )
00901                 ),
00902                 'config' => Array (
00903                         'label' => 'Setup:',
00904                         'config' => Array (
00905                                 'type' => 'text',
00906                                 'rows' => 10,
00907                                 'cols' => 48,
00908                                 'wrap' => 'OFF'
00909                         ),
00910                         'defaultExtras' => 'fixed-font : enable-tab',
00911                 ),
00912                 'editorcfg' => Array (
00913                         'label' => 'Backend Editor Configuration:',
00914                         'config' => Array (
00915                                 'type' => 'text',
00916                                 'rows' => 4,
00917                                 'cols' => 48,
00918                                 'wrap' => 'OFF'
00919                         ),
00920                         'defaultExtras' => 'fixed-font : enable-tab',
00921                 ),
00922                 'description' => Array (
00923                         'label' => 'Description:',
00924                         'config' => Array (
00925                                 'type' => 'text',
00926                                 'rows' => 10,
00927                                 'cols' => 48
00928                         )
00929                 )
00930         ),
00931         'types' => Array (
00932                 '1' => Array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
00933         )
00934 );
00935 
00936 
00937 
00938 ?>


Généré par TYPO3 Ameos avec  doxygen 1.4.6