答案 0 :(得分:2)
您需要为所有代码创建自定义模块,在install()
函数中为菜单链接创建新的Tab
(检查如何在classes/Tab.php
中执行此操作),使用{{1页面内容中的标签的类(检查即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')
),
/.../ ));
时,它会成为您可以在type
中检查的代码的一部分。有your-site-admin/themes/default/template/helpers/options/options.tpl
等代码行取决于您$field['type'] == 'select' /.../
定义的内容。
答案 1 :(得分: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'
),
) ));