[TYPO3-shop] [Typo3-shop] Problem extending tt_products

Vikram Mandal [Typo3India] vikram at typo3india.com
Wed Feb 1 16:40:41 CET 2006


Franz Holzinger wrote:

>Hello Vikram,
>
>  
>
>>Hi,
>>
>>I had the same problem .. the follow code helped me.
>>
>>/* mergeExtendingTCAs($ext_keys)
>>*
>>*  In case you wrote an extension, that extends the table "$table", then
>>*  the TCA information for the additional fields will be merged with the
>>"$table" TCA.
>>*
>>*  @param array Extension TCA's that should be merged.
>>*/
>>function mergeExtendingTCAs($ext_keys){
>>
>>    global $_EXTKEY, $TCA;
>>        //Merge all ext_keys
>>    if (is_array($ext_keys)) {
>>        for($i = 0; $i < sizeof($ext_keys); $i++){
>>            //Include the ext_table
>>            $_EXTKEY = $ext_keys[$i]; // added by F.Rakow
>>            include(t3lib_extMgm::extPath($ext_keys[$i]).'ext_tables.php');
>>        }
>>    }
>>}
>>
>>    
>>
>
>if this is ok for you, I could put this function into the fh_library.
>Then I can put a hook into tt_products which will call this function
>with the values in the hook array as parameters. I think this should be
>the init function of pi1/class.tx_ttproducts_pi1.php
>
>
>Regards,
>
>Franz
>  
>
Hi Franz,

It's not my code. Someone posted the same in the dev list. The code was 
taken from from Stanislas Rolland's extension 'sr_feedit'

Regards,
Vikram.







More information about the TYPO3-project-tt-products mailing list