Ich möchte für eine Checkbox einzelne Elemente vorauswählen:
PHP-Code:
$GLOBALS['TL_DCA']['tl_content']['fields']['pgn_gamestat'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_content']['pgn_gamestat'],
'default' => false,
'inputType' => 'checkbox',
'options' => array('event', 'site', 'date', 'round', 'white', 'black', 'result', 'eco', 'elo_w', 'elo_b', 'annotator', 'plycount'),
'reference' => &$GLOBALS['TL_LANG']['tl_content']['pgn_gamestat_option'],
'eval' => array('multiple' => 'true', 'tl_class' => 'w50 clr'),
'sql' => "varchar(255) NOT NULL default ''"
);
Hier z.B. möchte ich white, black und result auf true setzen. Welchen default-Wert muß ich übergeben?
Lesezeichen