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