[TYPO3] dynaflex produces wrong flexform-format
Johannes Konert
johanneskonert at gmx.de
Wed May 31 20:33:44 CEST 2006
Hello Thomas,
thanks again for such a quick reply.
I read your tutorial and used the same hook.
I'm sorry. While reading your code again, I found my mistake in tca.php
I had no default like
"ds" => array(
"default" => '<T3DataStructure>
I started directly with 0 => '<T3DataStructure
what obviously leads to "no" flexform if you are opening a new database
entry.
had nothing to do with your wonderful extension.
Cheers Johannes :)
Thomas Hempel wrote:
> Hi Johannes,
>
>> Is there any simple solution to make dynaflex run directly when a
>> "create new dataset" backend-form appears? Why is it only running when
>> the action is kind of edit, change type or so? Why isn't dynaflex
>> parsing the flexform when the action is 'new' ?
> That has a simple reason! In the TCA file you check if the data from the
> form has changed! If it has not, dynaflex will not do anything.
>
> You can simply call it via a hook in tcemain (e.g.
> processDatamap_afterDatabaseOperations).
>
> Or if you use TYPO3 4.0 you can call it in a hook in tce_forms. See the
> tutorial extension, you can find on my homepage.
>
>
> Greets,
> Thomas
>
>
More information about the TYPO3-english
mailing list