Zitat von
gm-team
Könntest du mir noch ein Beispiel geben wie ich das in der dcaconfig.php einfügen muss?
PHP-Code:
// EVENT_ADRESSE >> Anpassung der Palette
$GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['default'] = str_replace
(
'location,teaser','location,ort,plz,adresse,teaser',
$GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['default']
);
// EVENT_ADRESSE >> Hinzufügen der Feld-Konfiguration
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['adresse'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['adresse'],
'inputType' => 'text',
'eval' => array('mandatory'=>'true', 'maxlength'=>64, 'tl_class'=>'w50', 'feGroup'=>'details_legend'),
'sql' => "varchar(64) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['ort'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['ort'],
'inputType' => 'text',
'eval' => array('mandatory'=>'true', 'maxlength'=>20, 'tl_class'=>'w50', 'feGroup'=>'details_legend'),
'sql' => "varchar(64) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['plz'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_calendar_events']['plz'],
'inputType' => 'text',
'eval' => array('mandatory'=>'true', 'maxlength'=>5, 'tl_class'=>'w50', 'feGroup'=>'details_legend'),
'sql' => "varchar(64) NOT NULL default ''"
Bitte schön!