Hallo.
Ich versuche gerade mit einer Checkbox eine subpalette nachzuladen.
Nach klick auf die Checkbox läd die Seite aber es kommt nichts und das lade Bild bleibt.
dca
PHP-Code:
// Subpalette
$GLOBALS['TL_DCA'][$strName]['subpalettes']['empty'] =
'empty_value';
PHP-Code:
$GLOBALS['TL_DCA'][$strName]['fields']['empty'] = array
(
'label' => &$GLOBALS['TL_LANG'][$strName]['empty'],
'exclude' => true,
'inputType' => 'checkbox',
'eval' => array('submitOnChange'=>true),
'sql' => "char(1) NOT NULL default ''"
);
$GLOBALS['TL_DCA'][$strName]['fields']['empty_value'] = array
(
'label' => &$GLOBALS['TL_LANG'][$strName]['empty_value'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('mandatory'=>true, 'maxlength'=>255),
'sql' => "varchar(255) NOT NULL default ''"
);
Sehe den Fehler nicht eventuell kann mir jemand helfen.
lg Matthias
Lesezeichen