Documentation TYPO3 par Ameos

ext_tables.php

00001 <?php
00002 if (!defined ('TYPO3_MODE'))    die ('Access denied.');
00003 
00004 $TCA['tt_poll'] = 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                         'starttime' => 'starttime'
00014                 ),
00015                 'title' => 'LLL:EXT:tt_poll/locallang_tca.php:tt_poll',
00016                 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'ext_icon.gif'
00017         ),
00018         'interface' => Array (
00019                 'showRecordFieldList' => 'title,question,hidden,votes'
00020         ),
00021         'columns' => Array (
00022                 'title' => Array (
00023                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
00024                         'config' => Array (
00025                                 'type' => 'input',
00026                                 'size' => '40',
00027                                 'max' => '256'
00028                         )
00029                 ),
00030                 'question' => Array (
00031                         'label' => 'LLL:EXT:tt_poll/locallang_tca.php:tt_poll.question',
00032                         'config' => Array (
00033                                 'type' => 'text',
00034                                 'cols' => '40',
00035                                 'rows' => '2'
00036                         )
00037                 ),
00038                 'answers' => Array (
00039                         'label' => 'LLL:EXT:tt_poll/locallang_tca.php:tt_poll.answers',
00040                         'config' => Array (
00041                                 'type' => 'text',
00042                                 'cols' => '40',
00043                                 'rows' => '5'
00044                         )
00045                 ),
00046                 'votes' => Array (
00047                         'label' => 'LLL:EXT:tt_poll/locallang_tca.php:tt_poll.votes',
00048                         'config' => Array (
00049                                 'type' => 'input',
00050                                 'size' => '8',
00051                                 'max' => '12',
00052                                 'eval' => 'int',
00053                                 'default' => 0
00054                         )
00055                 ),
00056                 'recordlink' => Array (
00057                         'label' => 'LLL:EXT:tt_poll/locallang_tca.php:tt_poll.recordlink',
00058                         'config' => Array (
00059                                 'type' => 'group',
00060                                 'internal_type' => 'db',
00061                                 'allowed' => $TCA['tt_content']['columns']['records']['config']['allowed'],
00062                                 'size' => '1',
00063                                 'maxitems' => '1',
00064                                 'minitems' => '0',
00065                                 'show_thumbs' => '1'
00066                         )
00067                 ),
00068                 'starttime' => Array (
00069                         'exclude' => 1,
00070                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
00071                         'config' => Array (
00072                                 'type' => 'input',
00073                                 'size' => '7',
00074                                 'max' => '20',
00075                                 'eval' => 'date',
00076                                 'checkbox' => '0',
00077                                 'default' => '0'
00078                         )
00079                 ),
00080                 'endtime' => Array (
00081                         'exclude' => 1,
00082                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
00083                         'config' => Array (
00084                                 'type' => 'input',
00085                                 'size' => '7',
00086                                 'max' => '20',
00087                                 'eval' => 'date',
00088                                 'checkbox' => '0',
00089                                 'default' => '0',
00090                                 'range' => Array (
00091                                         'upper' => mktime(0,0,0,12,31,2020),
00092                                 )
00093                         )
00094                 ),
00095                 'hidden' => Array (
00096                         'exclude' => 1,
00097                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
00098                         'config' => Array (
00099                                 'type' => 'check',
00100                                 'default' => '1'
00101                         )
00102                 )
00103         ),
00104         'types' => Array (
00105                 '1' => Array('showitem' => 'hidden, title, question, answers, votes, starttime, endtime, recordlink')
00106         )
00107 );
00108 
00109 t3lib_extMgm::allowTableOnStandardPages('tt_poll');
00110 t3lib_extMgm::addToInsertRecords('tt_poll');
00111 ?>


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6