Documentation TYPO3 par Ameos |
00001 <?php 00002 00003 // ****************************************************************** 00004 // This is the standard TypoScript address table, tt_address 00005 // ****************************************************************** 00006 $TCA['tt_products'] = Array ( 00007 'ctrl' => $TCA['tt_products']['ctrl'], 00008 'interface' => Array ( 00009 'showRecordFieldList' => 'title,itemnumber,price,price2,note,category,inStock,image,hidden,starttime,endtime' 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' => '8', 00018 'max' => '20', 00019 'eval' => 'date', 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 ) 00037 ) 00038 ), 00039 'hidden' => Array ( 00040 'exclude' => 1, 00041 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 00042 'config' => Array ( 00043 'type' => 'check' 00044 ) 00045 ), 00046 'fe_group' => Array ( 00047 'exclude' => 1, 00048 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group', 00049 'config' => Array ( 00050 'type' => 'select', 00051 'items' => Array ( 00052 Array('', 0), 00053 Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', -1), 00054 Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2), 00055 Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--') 00056 ), 00057 'foreign_table' => 'fe_groups' 00058 ) 00059 ), 00060 'title' => Array ( 00061 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title', 00062 'config' => Array ( 00063 'type' => 'input', 00064 'size' => '40', 00065 'max' => '256' 00066 ) 00067 ), 00068 'note' => Array ( 00069 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.note', 00070 'config' => Array ( 00071 'type' => 'text', 00072 'cols' => '48', 00073 'rows' => '5' 00074 ) 00075 ), 00076 'price' => Array ( 00077 'label' => 'LLL:EXT:tt_products/locallang_tca.php:tt_products.price', 00078 'config' => Array ( 00079 'type' => 'input', 00080 'size' => '12', 00081 'eval' => 'trim,double2', 00082 'max' => '20' 00083 ) 00084 ), 00085 'price2' => Array ( 00086 'exclude' => 1, 00087 'label' => 'LLL:EXT:tt_products/locallang_tca.php:tt_products.price2', 00088 'config' => Array ( 00089 'type' => 'input', 00090 'size' => '12', 00091 'eval' => 'trim,double2', 00092 'max' => '20' 00093 ) 00094 ), 00095 'www' => Array ( 00096 'exclude' => 1, 00097 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.www', 00098 'config' => Array ( 00099 'type' => 'input', 00100 'eval' => 'trim', 00101 'size' => '20', 00102 'max' => '80' 00103 ) 00104 ), 00105 'itemnumber' => Array ( 00106 'label' => 'LLL:EXT:tt_products/locallang_tca.php:tt_products.itemnumber', 00107 'config' => Array ( 00108 'type' => 'input', 00109 'size' => '20', 00110 'eval' => 'trim', 00111 'max' => '40' 00112 ) 00113 ), 00114 'category' => Array ( 00115 'exclude' => 1, 00116 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.category', 00117 'config' => Array ( 00118 'type' => 'select', 00119 'items' => Array ( 00120 Array('', 0) 00121 ), 00122 'foreign_table' => 'tt_products_cat' 00123 ) 00124 ), 00125 'inStock' => Array ( 00126 'exclude' => 1, 00127 'label' => 'LLL:EXT:tt_products/locallang_tca.php:tt_products.inStock', 00128 'config' => Array ( 00129 'type' => 'input', 00130 'size' => '6', 00131 'max' => '6', 00132 'eval' => 'int', 00133 'range' => Array ( 00134 'lower' => 0 00135 ) 00136 ) 00137 ), 00138 'image' => Array ( 00139 'exclude' => 1, 00140 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.image', 00141 'config' => Array ( 00142 'type' => 'group', 00143 'internal_type' => 'file', 00144 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], 00145 'max_size' => '1000', 00146 'uploadfolder' => 'uploads/pics', 00147 'show_thumbs' => '1', 00148 'size' => '3', 00149 'maxitems' => '6', 00150 'minitems' => '0' 00151 ) 00152 ) 00153 ), 00154 'types' => Array ( 00155 '1' => Array('showitem' => 'hidden;;;;1-1-1, title;;3;;3-3-3, itemnumber, category, price;;2, note, image;;;;4-4-4') 00156 ), 00157 'palettes' => Array ( 00158 '1' => Array('showitem' => 'starttime, endtime, fe_group'), 00159 '2' => Array('showitem' => 'price2, inStock'), 00160 '3' => Array('showitem' => 'www') 00161 ) 00162 ); 00163 00164 00165 00166 // ****************************************************************** 00167 // This is the standard TypoScript products category table, tt_products_cat 00168 // ****************************************************************** 00169 $TCA['tt_products_cat'] = Array ( 00170 'ctrl' => $TCA['tt_products_cat']['ctrl'], 00171 'columns' => Array ( 00172 'title' => Array ( 00173 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title', 00174 'config' => Array ( 00175 'type' => 'input', 00176 'size' => '40', 00177 'max' => '256' 00178 ) 00179 ) 00180 ), 00181 'types' => Array ( 00182 '0' => Array('showitem' => 'title;;;;3-3-3') 00183 ) 00184 ); 00185 00186 ?>