Philipp Gampe wrote:
You should ask such questions in the mailing list / newsgroup. (typo3.english or typo3.dev)
Thanks - I've already done that. Also I tried to find an existing hook that may be able to do this.
I've figured out some Hooks in t3lib_tceform that asked for EXT:dynaflex that make the $row available, but I was unable to alter the array for the fields rendering afterwards.
I have a workaround solution made by myself using XCLASS on t3lib_tceforms:
------
class ux_t3lib_tceforms extends t3lib_tceforms {
function getSingleField($table, $field, $row, $altName = '', $palette = 0, $extra = '', $pal = 0) {
#die('LOAD::' . FILE . CLASS .'::' . FUNCTION);
// Test to alter the value of field "name"
$row['name'] = 'XXX';
return parent::getSingleField($table, $field, $row, $altName, $palette, $extra, $pal);
}
}
if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tceforms.php'])) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tceforms.php']);
}
?>
------
This works! Of course XCLASS'ing isn't always the best solution...
If there is a better solution to archive this, please let me know here.