[TYPO3-dev] Xml to Flexform

Xavier Perseguers typo3 at perseguers.ch
Mon Mar 9 14:30:45 CET 2009


Hi Sebastiaan,

>>> I have been looking for the function that translates the Flexform XML to
>>>  the Flexform we see at the backend, but i havent been able to find it.
>>> Does anyone know where to find it or have a function name what would
>>> help me?
>>
>> The question is too broad to answe precizely. Most likely you are 
>> looking for t3ib/class.t3lib_tceforms.php. This class creates Backend 
>> forms.
>>
>> If you only need to transform a flexform XML to a PHP array, 
>> t3lib_div::xml2array() is what you need.
>>
> 
> So i found the function, you where refering to:
> 
> $table = 'tx_compiler_element';
> $field = 'attributes';
> $row   = $current_row;
> $PA = ???????;
> 
> t3lib_tceforms::getSingleField_typeFlex($table,$field,$row,$PA);
> 
> So with what do i fill this $PA? Any pointers?

I guess easiest way would be to debug it yourself to see how it is 
populated by core...

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html




More information about the TYPO3-dev mailing list