[TYPO3-dev] Howto work with user-defined flexform

Steffen Kamper steffen at sk-typo3.de
Mon Jun 4 09:46:52 CEST 2007


Hi Joerg,

i only did the reading way. Because flexform is not standard xml it could be 
difficult to do it in both directions.
Did you looked in the source, how BE stores flexforms ?

vg  Steffen

"Joerg Schoppet" <joerg at schoppet.de> schrieb im Newsbeitrag 
news:mailman.1.1180936194.5492.typo3-dev at lists.netfielders.de...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Joerg Schoppet wrote:
>> Hi,
>>
>> I've the following question:
>>
>> I've extended the fe_users-table with a config-field for my extension.
>> This config-field is a flexform.
>>
>> To edit an existing fe_user I can simple load the flexform in a
>> php-array with t3lib_div::xml2array().
>>
>> If a user haven't a flexform I can load it with:
>> t3lib_div::loadTCA('fe_users');
>> $_EXTKEY = 'myext';
>> include($GLOBALS['TYPO3_LOADED_EXT']['jrenmoac']['ext_tables.php']);
>> $temp =
>> t3lib_BEfunc::geFlexformDS($GLOBALS['TCA']['fe_users']['columns']['tx_myext_config']['config'],
>> array(),'fe_users');
>>
>>
>> BUT:
>> If I convert $temp with t3lib_div::arrary2xml() I get another output as
>> if I save the flexform in the BE AND I've to use a BEfunc in the 
>> frontend.
>>
>> Is there any specific way to load AND save such flexform-fields from
>> within a frontend-plugin?
>>
>>
>> Kind Regards
>>
>> Joerg Schoppet
>
> Have nobody ever tried to work with flexforms in the FE, or have I
> explained it mistakable.
>
> Regards
>
> Joerg Schoppet
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGY6gCq5Me6rRDqPURAp3YAKC1+UAhBtZE5WAT2eOwXOxQkaGdqwCfRTDn
> 8Kfl2owjypZe+LjZHh2P1Nw=
> =oMsC
> -----END PGP SIGNATURE----- 






More information about the TYPO3-dev mailing list