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

K. Zugberg webshopper at arcor.de
Thu May 18 16:23:40 CEST 2006


Hello Franz,

thanks for your answer. I followed your advice and did the following:

I added a file named ext_localconf.php to my extension and inserted the 
code shown below (Initially there was no ext_localconf.php because I 
created the extension with the kickstarter)
The extension itself has a file named ext_tables.php where the functions 
loadTCA, addTCAcolumns and addToAllTCAtypes are called in order to 
extend tt_products.
When debugging I can see that the ext_localconf.php of my extension is 
loaded.
Nevertheless I can not see the new fields added by my extension in the 
backend form for editing products. Do you have any idea what might be 
wrong? Have I forgotten something? Do I need to use a hook to display 
the fields in the backend form?

Greetings

Katharina Zugberg

> Hello K. Zugberg,
>
>   
>> Which ext_localconf.php is meant here? The file of
>> fh_library or the file of the extension extending tt_products?
>>     
> You have to put this into your own extension. Then TYPO3 will read this
> and the hook shall work.
>
>   
>> And can the code shown below be used as is or does it have to be modified?
>>
>>     
> Use the lines as below. But you must have set your own TCA in your
> extension. You can have used the Extension Kickstarter to create these
> files extending the tt_products table.
>
>   
>> I tried integrating it already but the additional fields do not show in
>> the Backend module.
>>
>>     
>
> However you still have to use either XCLASS or better some other hooks
> you can find in the code so that the markers for your new fields will be
> replaced by the current data row.
>
>
>   
>>> You have to install fh_library 0.0.8.
>>> Set the hook in ext_localconf.php
>>>
>>> if (!defined ('TT_PRODUCTS_EXTkey')) {
>>>     define('TT_PRODUCTS_EXTkey','tt_products');
>>> }
>>> // Hooks for tt_products TCA
>>> $TYPO3_CONF_VARS['EXTCONF'][TT_PRODUCTS_EXTkey]['extendingTCA'][] =
>>> $_EXTKEY;
>>>
>>>       
>
>
> Greets,
>
> Franz
>
> _______________________________________________
> TYPO3-project-tt-products mailing list
> TYPO3-project-tt-products at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-products
>
>   




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