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

Joerg Schoppet joerg at schoppet.de
Sat Jun 2 14:42:25 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGYWWxq5Me6rRDqPURAssDAKCTBfhB8FoRiq+S12+cLpyzc2F43wCfSFm8
J1qfmjN74jDkOrSzmeRqAsw=
=GCzd
-----END PGP SIGNATURE-----




More information about the TYPO3-dev mailing list