我在prestashop中创建了一个helperList。在创建列表时,我注意到helperList右上角有一行特定的按钮(工具栏按钮),它们提供了有关数据库的功能。是否可以根据自己的需要修改这些按钮并赋予它们功能?我添加了一个我创建的helperList图像,并用红色方块标记了这些按钮。
答案 0 :(得分:0)
找到解决方案。可以通过覆盖helperList prestashop的工具栏来修改它们。
public function initToolbar() {
parent::initToolbar();
$this->toolbar_btn['new'] = array(
'href' => $this->context->link->getAdminLink('some link'),
'desc' => $this->l('some description')
);
}