如何在prestashop管理菜单中创建选项卡式窗体

问题描述 投票:0回答:2

有没有人知道如何在Prestashop管理员端qazxsw poi中创建选项卡式菜单表单

我想在单击“运行状况检查配置”菜单时添加选项卡。需要显示检查,支持组等选项卡等。在上一节中,我想添加一个标签菜单,如下图所示:

enter image description here

php prestashop prestashop-1.6 prestashop-1.7
2个回答
1
投票

enter image description here

我添加并管理你的提示和帮助,非常感谢你下面是我做的代码:

enter image description here

1
投票

你需要为所有代码创建一个自定义模块,在$this->fields_options = array( 'appearance' => array( 'title' => $this->l('Manage your Health Check '), 'icon' => 'icon-html5', 'tabs' => array( 'TAB1' => $this->l('SUPPORT_GROUPS'), 'TAB2' => $this->l('CHECKS'), 'TAB3' => $this->l('REPORT RECIPIENTS'), ), 'fields' => array( 'SUPPORT_GROUPS' => array( 'tab' => 'TAB1' ), 'CHECKS' => array( 'tab' => 'TAB2' ), 'REPORT_RECIPIENTS' => array( 'tab' => 'TAB3' ), ) )); 函数中为菜单链接创建一个新的install()(检查如何在Tab中执行它),在页面内容中使用classes/Tab.php类作为选项卡(检查即:HelperOptions)。

如在此代码中:

controllers/admin/AdminThemesController.php

$this->fields_options = array( 'appearance' => array( 'title' => $this->l('Your title'), 'icon' => 'icon-html5', 'tabs' => array( 'logo' => $this->l('Logo'), 'logo2' => $this->l('Invoice & Email Logos'), 'icons' => $this->l('Icons'), 'mobile' => $this->l('Mobile'), ), 'fields' => array( 'PS_LOGO' => array( 'title' => $this->l('Header logo'), 'hint' => $this->l('Will appear on main page. Recommended height: 52px. Maximum height on default theme: 65px.'), 'type' => 'file', 'name' => 'PS_LOGO', 'tab' => 'logo', 'thumb' => _PS_IMG_.Configuration::get('PS_LOGO') ), /.../ ));

当您定义qazxsw poi时,它将成为您可以在qazxsw poi中检查的代码的一部分。有像Tabs example.等代码行,这取决于你定义的type

© www.soinside.com 2019 - 2024. All rights reserved.