Documentation TYPO3 par Ameos

tca.php

00001 <?php
00002 
00003 
00004 // ******************************************************************
00005 // This is the standard TypoScript Board table, tt_board
00006 // ******************************************************************
00007 $TCA['tt_board'] = Array (
00008         'ctrl' => $TCA['tt_board']['ctrl'],
00009         'interface' => Array (
00010                 'showRecordFieldList' => 'subject,author,email,message'
00011         ),
00012         'columns' => Array (    
00013                 'subject' => Array (
00014                         'label' => 'LLL:EXT:tt_board/locallang_tca.php:tt_board.subject',
00015                         'config' => Array (
00016                                 'type' => 'input',
00017                                 'size' => '40',
00018                                 'max' => '256'
00019                         )
00020                 ),
00021                 'message' => Array (
00022                         'label' => 'LLL:EXT:tt_board/locallang_tca.php:tt_board.message',
00023                         'config' => Array (
00024                                 'type' => 'text',
00025                                 'cols' => '40', 
00026                                 'rows' => '5'
00027                         )
00028                 ),
00029                 'author' => Array (
00030                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.author',
00031                         'config' => Array (
00032                                 'type' => 'input',
00033                                 'size' => '40',
00034                                 'eval' => 'trim',
00035                                 'max' => '80'
00036                         )
00037                 ),
00038                 'email' => Array (
00039                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
00040                         'config' => Array (
00041                                 'type' => 'input',
00042                                 'size' => '40',
00043                                 'eval' => 'trim',
00044                                 'max' => '80'
00045                         )
00046                 ),
00047                 'hidden' => Array (
00048                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
00049                         'config' => Array (
00050                                 'type' => 'check'
00051                         )
00052                 ),
00053                 'parent' => Array (
00054                         'label' => 'LLL:EXT:tt_board/locallang_tca.php:tt_board.parent',
00055                         'config' => Array (
00056                                 'type' => 'group',
00057                                 'internal_type' => 'db',
00058                                         'allowed' => 'tt_board',
00059                                 'size' => '3',
00060                                 'maxitems' => '1',
00061                                 'minitems' => '0',
00062                                 'show_thumbs' => '1'
00063                         )
00064                 ),
00065                 'notify_me' => Array (
00066                         'label' => 'LLL:EXT:tt_board/locallang_tca.php:tt_board.notify_me',
00067                         'config' => Array (
00068                                 'type' => 'check'
00069                         )
00070                 ),
00071                 'crdate' => Array (             // This field is by default filled with creation date. See tt_board 'ctrl' section
00072                         'exclude' => 1, 
00073                         'label' => 'LLL:EXT:tt_board/locallang_tca.php:tt_board.crdate',
00074                         'config' => Array (
00075                                 'type' => 'input',
00076                                 'size' => '10',
00077                                 'max' => '20',
00078                                 'eval' => 'datetime'
00079                         )
00080                 )
00081         ),
00082         'types' => Array (      
00083                 '0' => Array('showitem' => 'hidden;;;;1-1-1, crdate, subject;;;;3-3-3, message, author, email, parent;;;;5-5-5, notify_me')
00084         )
00085 );
00086 ?>


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