Documentation TYPO3 par Ameos

ext_tables.php

00001 <?php
00002 if (!defined ('TYPO3_MODE'))    die ('Access denied.');
00003 
00004 $TCA['tt_rating'] = Array (
00005         'ctrl' => Array (
00006                 'label' => 'title',
00007                 'default_sortby' => 'ORDER BY title',
00008                 'tstamp' => 'tstamp',
00009                 'delete' => 'deleted',
00010                 'crdate' => 'crdate',
00011                 'enablecolumns' => Array (
00012                         'disabled' => 'hidden'
00013                 ),
00014                 'title' => 'LLL:EXT:tt_rating/locallang_tca.php:tt_rating',
00015                 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'ext_icon.gif'
00016         ),
00017         'interface' => Array (
00018                 'showRecordFieldList' => 'title,description,hidden,rating,votes'
00019         ),
00020         'columns' => Array (
00021                 'title' => Array (
00022                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
00023                         'config' => Array (
00024                                 'type' => 'input',
00025                                 'size' => '40',
00026                                 'max' => '256'
00027                         )
00028                 ),
00029                 'description' => Array (
00030                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
00031                         'config' => Array (
00032                                 'type' => 'text',
00033                                 'cols' => '40',
00034                                 'rows' => '5'
00035                         )
00036                 ),
00037                 'rating' => Array (
00038                         'label' => 'LLL:EXT:tt_rating/locallang_tca.php:tt_rating.rating',
00039                         'config' => Array (
00040                                 'type' => 'input',
00041                                 'size' => '8',
00042                                 'max' => '20',
00043                                 'eval' => 'trim,double2',
00044                                 'default' => '0'
00045                         )
00046                 ),
00047                 'votes' => Array (
00048                         'label' => 'LLL:EXT:tt_rating/locallang_tca.php:tt_rating.votes',
00049                         'config' => Array (
00050                                 'type' => 'input',
00051                                 'size' => '8',
00052                                 'max' => '12',
00053                                 'eval' => 'int',
00054                                 'default' => 0
00055                         )
00056                 ),
00057                 'ratingstat' => Array (
00058                         'label' => 'LLL:EXT:tt_rating/locallang_tca.php:tt_rating.ratingstat',
00059                         'config' => Array (
00060                                 'type' => 'input',
00061                                 'size' => '40',
00062                                 'max' => '256'
00063                         )
00064                 ),
00065                 'recordlink' => Array (
00066                         'label' => 'LLL:EXT:tt_rating/locallang_tca.php:tt_rating.recordlink',
00067                         'config' => Array (
00068                                 'type' => 'group',
00069                                 'internal_type' => 'db',
00070                                 'allowed' => $TCA['tt_content']['columns']['records']['config']['allowed'],
00071                                 'size' => '1',
00072                                 'maxitems' => '1',
00073                                 'minitems' => '0',
00074                                 'show_thumbs' => '1'
00075                         )
00076                 ),
00077                 'hidden' => Array (
00078                         'exclude' => 1,
00079                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
00080                         'config' => Array (
00081                                 'type' => 'check',
00082                                 'default' => '1'
00083                         )
00084                 )
00085         ),
00086         'types' => Array (
00087                 '1' => Array('showitem' => 'hidden, title, description, rating, votes, recordlink')
00088         )
00089 );
00090 
00091 t3lib_extMgm::allowTableOnStandardPages('tt_rating');
00092 t3lib_extMgm::addToInsertRecords('tt_rating');
00093 t3lib_extMgm::addPlugin(Array('LLL:EXT:tt_rating/locallang_tca.php:pi', '8'));
00094 if (TYPO3_MODE=='BE')   $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_ttrating_wizicon'] = t3lib_extMgm::extPath($_EXTKEY).'class.tx_ttrating_wizicon.php';
00095 ?>


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