[TYPO3-dev] Update database when saving plugin flexform configuration in BE?
Gerhard Mehsel
sparking at gmx.net
Wed Sep 9 17:29:31 CEST 2009
Hello,
Mathias Schreiber [wmdb >] schrieb:
>
> Use a postProcess Hook.
Ok I use the
processDatamap_afterDatabaseOperations($stat,$tbl,$id,&$fieldArr,&$ref)
hook from class.t3lib_tcemain.php
Does anything argue against the use of this hook?
> But getting the values from the flexform XML might be a little
> unconvinient.
Hmm seems to be ok:
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('pi_flexform',
'tt_content','uid='.$id, null, null, 1);
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$flexcontent = $row;
}
$flex_array = t3lib_div::xml2array($flexcontent['pi_flexform']);
// here is my desired flexform value
$flex_array['data']['maint']['lDEF']['maintmode']['vDEF'];
If I can do anything better let me know please!
Regards,
gerd
More information about the TYPO3-dev
mailing list