[TYPO3-dev] Xml to Flexform
Sebastiaan van Parijs
sebastiaan at framed.nl
Mon Mar 9 16:44:38 CET 2009
Dmitry Dulepov wrote:
> Hi!
>
> Sebastiaan van Parijs wrote:
>> 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 do not think you will be able to call only this function and get the desired results. It is like getting the battery from the car and thinking that the battery can drive you somewhere.
>
> You need the rest of the car too.
>
Well strange enough i got it to work, took me some time. Now that i got
the output, now id like to get the results in the database.
The function works the same as it used to, any ideas?
Maybe a manipulated version of the default save function?
Thnx alot for the good responses,
Sebastiaan
Ps.
There are the result codes:
$PA = array( 'altName' => '',
'palette' => 1,
'extra' => '',
'pal' => '',
'fieldConf'=> array( 'exclude' => 1,
'label' => 'attributes',
'config' => array( 'type' => 'flex',
'ds' => array( 'default' => $row['attributes'] ),
'form_type' => 'flex'),
),
'itemFormElValue' => $row['attributes'],
'itemFormElID' => '',
'onFocus' => '',
'label' => '',
'fieldChangeFunc' => array( 'TBE_EDITOR_fieldChanged' =>
"TBE_EDITOR.fieldChanged('tx_compiler_element','".
$row['uid']."','attributes','data[tx_compiler_elemen][".$row['uid']."][attributes]');",
'alert' => '' )
);
$htmlSource = $this->t3lib_TCEforms->getSingleField_SW(
'tx_compiler_element', 'attributes', $row, $PA );
More information about the TYPO3-dev
mailing list