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