Hallo, ist es möglich die Datei zu overloaden: includes/classes/Smarty/plugins/function.object_product_list.php es muss da eine Codezeile: PHP: $coo_view->set_content_template('objects/product_boxes_list.html'); durch: PHP: if (CURRENT_TEMPLATE != 'EyeCandy') { if($params['id_prefix'] == 'product_boxes_list_slider'){ $coo_view->set_content_template('objects/product_boxes_list_slider.html'); } else { $coo_view->set_content_template('objects/product_boxes_list.html'); }} else { $coo_view->set_content_template('objects/product_boxes_list.html');} ersetzen. Vielen Dank im Voraus Alexander
Nein, Smarty-Plugins kann man nicht überladen.... Evtl. könnte man das durch Überladen der "set_content_template"-Methode der "Contentview"-Klasse lösen... PHP: $coo_view = MainFactory::create_object('ContentView'); $coo_view->set_content_template('objects/product_boxes_list.html'); Allerdings hat man dabei keinen Zugriff auf PHP: $params['id_prefix'] als Kriterium. Evtl. kann man das Kriterium aber auch anders ableiten....