Hi,
anscheind ist es noch zu früh im default array dei id über get zu setzen. (\Input::get('id')
Bekomme da immer die PID beim Newsmodul.
PHP-Code:
'alias' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_test']['alias'],
'inputType' => 'text',
'default' => array( function ($dc) { return $dc->id.'-test';})
),
Fehlermeldung:
HTML-Code:
Fatal error: Uncaught exception Exception with message Serialization of 'Closure' is not allowed thrown in C:\xampp\htdocs\c33\system\modules\core\drivers\DC_Table.php on line 634
Die Metode von hier , geht auch nicht. Dort wird es allerdings im wizard verwedet. Hat jemand ein Tipp, wie ich die ID ohne callback bekomme?
Mit onload callback ist es kein Problem.
Danke.
Lesezeichen