[TYPO3-mvc] TCA and switching form parts
JR
jayr at moodler.de
Sun Aug 15 15:29:20 CEST 2010
Hey,
I'm writing my first extension, a product catalog based on extbase and
fluid.
In the backend I organize the forms with TCA. Each product should have
different technical data depending on the category.
Example:
Category: "Induktion"
Product with special attributes depending on "Induktion"
* EAN
* Height
* Width
Category: "Multifunktionsgerät"
Product with special attributes depending on "Multifunktionsgerät"
* EAN
* Voltage
* VPE
I have added a select with the following Code in the TCA.
...
'columns' => array(
'category' => array(
'exclude' => 1,
'label' => 'Category',
'config' => array(
'type' => 'select',
'minitems' => 1,
'maxitems' => 1,
'foreign_table' => 'tx_jrcatalog_domain_model_category',
)
),
...
How can I switch parts of the form depending on the category? I have
absolutely no idea. I have studied examples like blog_example, sjr_offers
and kiddog_news but there isn't any way of that.
Thanks for any help!
More information about the TYPO3-project-typo3v4mvc
mailing list