[TYPO3-shop] [Typo3-shop] Problem extending tt_products
K. Zugberg
webshopper at arcor.de
Mon May 22 17:43:13 CEST 2006
Hello Franz Holzinger,
> Check your
> t3lib_extMgm::addToAllTCAtypes('tt_products','your_new_field;;;;1-1-1');
>
> You must enter here all your new field names. Otherwise they are not
> visible in the backend. It is not enough to add the columns to the TCA.
>
-> I added all my fields in the way described above. Then I did what you
suggested in the text follwowing:
> They must also be added to the
> $TCA['tt_products'] = Array (
> ...
> 'types' => Array (
> '0' => Array('showitem' => ';;;;1-1-1,hidden;;1,
> title;;2;;3-3-3,subtitle;;5;;3-3-3, itemnumber;;3, category,
> price;;4,weight;;6,
> note;;;richtext[]:rte_transform[mode=ts_css|imgpath=uploads/tx_ttproducts/rte/],image;;;;4-4-4,datasheet,'
> .
>
> '--div--;LLL:EXT:tt_products/locallang_db.xml:tt_products.variants,color,size,gradings;;7,description,additional')
> ),
>
>
> of tca.php from tt_products.
>
But still the fields did not show up. I found out that the new fields
have to be added to the 'palettes' array in file tca.php of tt_products:
'palettes' => Array ( ....
ONLY when I add my fieldnames here the fields are displayed in the edit
page in the BE Module. This is a bit unhandy because it means that this
additions will have to be done manually each time tt_products is
updated. Is there no better way to extend tt_products?
Greetings
Katharina Zugberg
More information about the TYPO3-project-tt-products
mailing list