Hallo Hagen,
die DCAs aus dem Backend hatte ich mir auch schon angesehen und genau so probiert, wie du es hier beschrieben hast.
Ich erhalte allerdings folgende Fehlermeldung:
Warning: Invalid argument supplied for foreach() in C:\wamp\www\CMS\typolight-2.7.2\system\drivers\DC_Table.php on line 3135
Warning: vsprintf() [function.vsprintf]: Too few arguments in C:\wamp\www\CMS\typolight-2.7.2\system\drivers\DC_Table.php on line 3194
So sieht mein Code aus:
PHP-Code:
$GLOBALS['TL_DCA']['tl_meinmodul_settings'] = array
(
// Config
'config' => array
(
'dataContainer' => 'Table',
'enableVersioning' => true
),
// Palettes
'palettes' => array
(
'default' => 'einstellung1,einstellung2',
),
// Fields
'fields' => array
(
'einstellung1' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_meinmodul_settings']['einstellung1'],
'inputType' => 'text',
'eval' => array('mandatory'=>true, 'maxlength'=>128)
),
'einstellung2' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_meinmodul_settings']['einstellung2'],
'inputType' => 'text',
'eval' => array('mandatory'=>true, 'maxlength'=>128)
)
)
);
Lesezeichen