[TYPO3-dev] TemplaVoila: ruleConstants or how to change flexform dynamically

Stefan Frömken firma at sfroemken.de
Mon Sep 6 21:59:34 CEST 2010


Am 06.09.2010 20:28, schrieb Steffen Kamper:
> Hi,
>
> Stefan Frömken schrieb:
>> Hello list,
>>
>> I'm just searching for a possibility to change my Flexform when I
>> changed entries in a selectbox (f.e. text, pic, ...).
>> Normally I can do this with
>>
>> 'types' => array()
>>
>> in TCA. But how to access "types" in Flexform of FCEs? I stumbles over
>> a documentation of 2004 where ruleConstants of TemplaVoila is
>> explained, but in class.tx_templavoila_rules.php it meens
>> ruleConstants is deprecated.
>>
>> Maybe I can solve it with onChange/displayCond...but these options are
>> not listed in documentation od templavoila.
>>
>> So...how can I realize this?
>>
>
> Flexforms use complete TCA, so all valid TCA configurations can be used
> in flexforms as well. Only difference i see is the onChange as this is
> different to normal TCA.
>
> So use the TCA documentation, as it's not TV related
> http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/
>
>
> vg Steffen

Hello Steffen,

I know this documentation and I have read it again and again and it is 
in my Browser-Favorites.

I search for this function/array:
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/#id2530102

But with Flexforms I can only access config-array starting from here:
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/#id2520197

So...how can I access "types" array, which is 2 levels higher?

Stefan




More information about the TYPO3-dev mailing list