[TYPO3-shop] Re: [Typo3-shop] Problem extending tt_products
Franz Holzinger
franz at fholzinger.com
Wed Feb 1 11:35:40 CET 2006
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
More information about the TYPO3-project-tt-products
mailing list