[TYPO3-shop] [Typo3-shop] Problem extending tt_products
Franz Holzinger
franz at fholzinger.com
Thu May 18 18:59:11 CEST 2006
Hello Katharina Zugberg,
> 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.
Fine, this can be done also by using the Extension Kickstarter.
> When debugging I can see that the ext_localconf.php of my extension is
> loaded.
This is done automatically by TYPO3 as soon as an extension has been
installed.
> 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?
>
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.
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.
Check also via the phpMyAdmin if all new fields are there within the
tt_products table.
Greets,
Franz
More information about the TYPO3-project-tt-products
mailing list