Documentation TYPO3 par Ameos

tca.php

00001 <?php
00002 
00003 // ******************************************************************
00004 // This is the standard TypoScript news table, tt_news
00005 // ******************************************************************
00006 $TCA['tt_news'] = Array (
00007         'ctrl' => $TCA['tt_news']['ctrl'],
00008         'interface' => Array (
00009                 'showRecordFieldList' => 'title,hidden,datetime,starttime,archivedate,category,author,author_email,short,image,imagecaption,links,related'
00010         ),
00011         'columns' => Array (
00012                 'starttime' => Array (
00013                         'exclude' => 1,
00014                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
00015                         'config' => Array (
00016                                 'type' => 'input',
00017                                 'size' => '10',
00018                                 'max' => '20',
00019                                 'eval' => 'datetime',
00020                                 'checkbox' => '0',
00021                                 'default' => '0'
00022                         )
00023                 ),
00024                 'endtime' => Array (
00025                         'exclude' => 1,
00026                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
00027                         'config' => Array (
00028                                 'type' => 'input',
00029                                 'size' => '8',
00030                                 'max' => '20',
00031                                 'eval' => 'date',
00032                                 'checkbox' => '0',
00033                                 'default' => '0',
00034                                 'range' => Array (
00035                                         'upper' => mktime(0,0,0,12,31,2020),
00036                                         'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
00037                                 )
00038                         )
00039                 ),
00040                 'hidden' => Array (
00041                         'exclude' => 1,
00042                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
00043                         'config' => Array (
00044                                 'type' => 'check',
00045                                 'default' => '1'
00046                         )
00047                 ),
00048                 'fe_group' => Array (
00049                         'exclude' => 1,
00050                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
00051                         'config' => Array (
00052                                 'type' => 'select',
00053                                 'items' => Array (
00054                                         Array('', 0),
00055                                         Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', -1),
00056                                         Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),
00057                                         Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')
00058                                 ),
00059                                 'foreign_table' => 'fe_groups'
00060                         )
00061                 ),
00062                 'title' => Array (
00063                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
00064                         'config' => Array (
00065                                 'type' => 'input',
00066                                 'size' => '40',
00067                                 'max' => '256'
00068                         )
00069                 ),
00070                 'ext_url' => Array (
00071                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.external',
00072                         'config' => Array (
00073                                 'type' => 'input',
00074                                 'size' => '40',
00075                                 'max' => '256',
00076                                 'wizards' => Array(
00077                                         '_PADDING' => 2,
00078                                         'link' => Array(
00079                                                 'type' => 'popup',
00080                                                 'title' => 'Link',
00081                                                 'icon' => 'link_popup.gif',
00082                                                 'script' => 'browse_links.php?mode=wizard',
00083                                                 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
00084                                         )
00085                                 )
00086                         )
00087                 ),
00088                 'bodytext' => Array (
00089                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.text',
00090                         'config' => Array (
00091                                 'type' => 'text',
00092                                 'cols' => '48',
00093                                 'rows' => '5'
00094                         )
00095                 ),
00096                 'short' => Array (
00097                         'exclude' => 1,
00098                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.subheader',
00099                         'config' => Array (
00100                                 'type' => 'text',
00101                                 'cols' => '40',
00102                                 'rows' => '3'
00103                         )
00104                 ),
00105                 'type' => Array (
00106                         'exclude' => 1,
00107                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
00108                         'config' => Array (
00109                                 'type' => 'select',
00110                                 'items' => Array (
00111                                         Array('LLL:EXT:tt_news/locallang_tca.php:tt_news.type.I.0', 0),
00112                                         Array('LLL:EXT:tt_news/locallang_tca.php:tt_news.type.I.1', 1),
00113                                         Array('LLL:EXT:lang/locallang_general.php:LGL.external', 2)
00114                                 ),
00115                                 'default' => 0
00116                         )
00117                 ),
00118                 'datetime' => Array (
00119                         'exclude' => 1,
00120                         'label' => 'LLL:EXT:tt_news/locallang_tca.php:tt_news.datetime',
00121                         'config' => Array (
00122                                 'type' => 'input',
00123                                 'size' => '10',
00124                                 'max' => '20',
00125                                 'eval' => 'datetime',
00126                                 'default' => '0'
00127                         )
00128                 ),
00129                 'archivedate' => Array (
00130                         'exclude' => 1,
00131                         'label' => 'LLL:EXT:tt_news/locallang_tca.php:tt_news.archivedate',
00132                         'config' => Array (
00133                                 'type' => 'input',
00134                                 'size' => '10',
00135                                 'max' => '20',
00136                                 'eval' => 'date',
00137                                 'default' => '0'
00138                         )
00139                 ),
00140                 'image' => Array (
00141                         'exclude' => 1,
00142                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.images',
00143                         'config' => Array (
00144                                 'type' => 'group',
00145                                 'internal_type' => 'file',
00146                                 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
00147                                 'max_size' => '1000',
00148                                 'uploadfolder' => 'uploads/pics',
00149                                 'show_thumbs' => '1',
00150                                 'size' => '3',
00151                                 'maxitems' => '10',
00152                                 'minitems' => '0'
00153                         )
00154                 ),
00155                 'imagecaption' => Array (
00156                         'exclude' => 1,
00157                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.caption',
00158                         'config' => Array (
00159                                 'type' => 'text',
00160                                 'cols' => '30',
00161                                 'rows' => '3'
00162                         )
00163                 ),
00164                 'author' => Array (
00165                         'exclude' => 1,
00166                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.author',
00167                         'config' => Array (
00168                                 'type' => 'input',
00169                                 'size' => '20',
00170                                 'eval' => 'trim',
00171                                 'max' => '80'
00172                         )
00173                 ),
00174                 'author_email' => Array (
00175                         'exclude' => 1,
00176                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
00177                         'config' => Array (
00178                                 'type' => 'input',
00179                                 'size' => '20',
00180                                 'eval' => 'trim',
00181                                 'max' => '80'
00182                         )
00183                 ),
00184                 'related' => Array (
00185                         'exclude' => 1,
00186                         'label' => 'LLL:EXT:tt_news/locallang_tca.php:tt_news.related',
00187                         'config' => Array (
00188                                 'type' => 'group',
00189                                 'internal_type' => 'db',
00190                                         'allowed' => 'tt_news',
00191                                         'MM' => 'tt_news_related_mm',
00192                                 'size' => '5',
00193                                 'maxitems' => '200',
00194                                 'minitems' => '0',
00195                                 'show_thumbs' => '1'
00196                         )
00197                 ),
00198                 'keywords' => Array (
00199                         'exclude' => 1,
00200                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.keywords',
00201                         'config' => Array (
00202                                 'type' => 'text',
00203                                 'cols' => '40',
00204                                 'rows' => '3'
00205                         )
00206                 ),
00207                 'links' => Array (
00208                         'exclude' => 1,
00209                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.links',
00210                         'config' => Array (
00211                                 'type' => 'text',
00212                                 'cols' => '40',
00213                                 'rows' => '3'
00214                         )
00215                 ),
00216                 'category' => Array (
00217                         'exclude' => 1,
00218                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.category',
00219                         'config' => Array (
00220                                 'type' => 'select',
00221                                 'items' => Array (
00222                                         Array('', 0)
00223                                 ),
00224                                 'foreign_table' => 'tt_news_cat'
00225                         )
00226                 ),
00227                 'page' => Array (
00228                         'exclude' => 1,
00229                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.shortcut_page',
00230                         'config' => Array (
00231                                 'type' => 'group',
00232                                 'internal_type' => 'db',
00233                                         'allowed' => 'pages',
00234                                 'size' => '1',
00235                                 'maxitems' => '1',
00236                                 'minitems' => '0',
00237                                 'show_thumbs' => '1'
00238                         )
00239                 )
00240         ),
00241         'types' => Array (
00242                 '0' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,datetime,starttime;;1,archivedate,category,author,author_email,keywords,--div--,short;;;;3-3-3,bodytext,image;;;;4-4-4,imagecaption,--div--,links;;;;5-5-5,related'),
00243                 '1' => Array('showitem' => 'hidden;;;;1-1-1,type,page,title;;;;2-2-2,datetime,starttime;;1,archivedate,category,author,author_email,keywords,--div--,short;;;;3-3-3'),
00244                 '2' => Array('showitem' => 'hidden;;;;1-1-1,type,ext_url,title;;;;2-2-2,datetime,starttime;;1,archivedate,category,author,author_email,keywords,--div--,short;;;;3-3-3')
00245         ),
00246         'palettes' => Array (
00247                 '1' => Array('showitem' => 'endtime,fe_group')
00248         )
00249 );
00250 
00251 
00252 
00253 // ******************************************************************
00254 // This is the standard TypoScript news category table, tt_news_cat
00255 // ******************************************************************
00256 $TCA['tt_news_cat'] = Array (
00257         'ctrl' => $TCA['tt_news_cat']['ctrl'],
00258         'interface' => Array (
00259                 'showRecordFieldList' => 'title'
00260         ),
00261         'columns' => Array (
00262                 'title' => Array (
00263                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
00264                         'config' => Array (
00265                                 'type' => 'input',
00266                                 'size' => '40',
00267                                 'max' => '256'
00268                         )
00269                 )
00270         ),
00271         'types' => Array (
00272                 '0' => Array('showitem' => 'title;;;;3-3-3')
00273         )
00274 );
00275 
00276 ?>


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