ich habe ein Modul im Stil von Contao 3 (kein Bundle) und ich will tl_ls_shop_product erweitern.
Das alles ist auf einem Contao 4.4 System und ich bin noch nicht dazu gekommen die Erweiterung in Bundle-Form zu bringen.
Code: Alles auswählen
$GLOBALS['TL_DCA']['tl_ls_shop_product']['palettes']['default'] = str_replace
(
'{lsShopPublishAndState_legend},
published,
lsShopProductIsNew,',
'{lsShopPublishAndState_legend},
published,
lsShopProductIsNew,
lb_isConsulting',
$GLOBALS['TL_DCA']['tl_ls_shop_product']['palettes']['default']
);
$GLOBALS['TL_DCA']['tl_ls_shop_product']['palettes']['default'] = str_replace
(
'{lsShopUnits_legend},
lsShopProductQuantityUnit,
lsShopProductMengenvergleichUnit;',
'{lsShopUnits_legend},
lsShopProductQuantityUnit,
lsShopProductMengenvergleichUnit,
lb_Duration;',
$GLOBALS['TL_DCA']['tl_ls_shop_product']['palettes']['default']
);
// Hinzufügen der Feld-Konfiguration
$GLOBALS['TL_DCA']['tl_ls_shop_product']['fields']['lb_isConsulting'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_ls_shop_product']['lb_isConsulting'],
'inputType' => 'checkbox',
'eval' => array('feEditable'=>true, 'feViewable'=>true,'rgxp'=>'time'),
'sql' => "int(10) unsigned NOT NULL default '0'"
);
$GLOBALS['TL_DCA']['tl_ls_shop_product']['fields']['lb_Duration'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_ls_shop_product']['lb_Duration'],
'inputType' => 'text',
'eval' => array('feEditable'=>true, 'feViewable'=>true,'rgxp'=>'time'),
'options_callback' => array('lb_productClass', 'myOptionsCallback'),
'sql' => "int(10) unsigned NOT NULL default '0'"
);
Jedoch weiß ich nicht was ich für das Merconis Bundle in die autoload.ini eintragen muss. Oder muss ich selber ein Bundle haben um das machen zu können?
Als Fehlermeldung bekomme ich ("The module folder "system/modules/LeadingSystemsMerconisBundle" does not ex
ist."). Ich weiß jetzt leider nicht ob ich einfach nicht den richtigen Namen eingetragen habe oder ob es generell nicht funktioniert.