Xml 如何在magento后端配置上添加选项卡
我花了好几个小时试图在Magento系统配置后端的菜单中添加一个新选项卡,并学习了多个教程,但仍然没有显示。 我写的代码是: app/code/local/packagename/helloWorld/etc/system.xmlXml 如何在magento后端配置上添加选项卡,xml,magento,backend,Xml,Magento,Backend,我花了好几个小时试图在Magento系统配置后端的菜单中添加一个新选项卡,并学习了多个教程,但仍然没有显示。 我写的代码是: app/code/local/packagename/helloWorld/etc/system.xml <?xml version="1.0"?> <config> <tabs> <helloconfig translate="label" module="helloworld"> <labe
<?xml version="1.0"?>
<config>
<tabs>
<helloconfig translate="label" module="helloworld">
<label>Hello Config</label>
<sort_order>99999</sort_order>
</helloconfig>
</tabs>
<sections>
<helloworld_options translate="label" module="helloworld">
<label>Hello World Config Options</label>
<tab>helloconfig</tab>
<frontend_type>text</frontend_type>
<sort_order>1000</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<messages translate="label">
<label>Demo Of Config Fields</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</messages>
</groups>
</helloworld_options>
</sections>
</config>
你好,配置
99999
Hello世界配置选项
helloconfig
文本
1000
1.
1.
1.
配置字段的演示
文本
1.
1.
1.
1.
及
app/code/local/packagename/helloWorld/etc/config.xml
<?xml version="1.0"?>
<config>
<global>
<helpers>
<helloworld>
<class>packagename_Helloworld_Helper</class>
</helloworld>
</helpers>
</global>
</config>
packagename\u Helloworld\u助手
和义务帮手
app/code/local/packagename/helloWorld/Helper/Data.php
<?php
class packagename_Helloworld_Helper_Data
extends Mage_Core_Helper_Abstract
{
}
?>
缓存已关闭
据我所知,这应该会在Magento后端的System->Configuration下的菜单中添加一个新选项卡。但事实并非如此。
因此,可能有人对此有答案,如果您必须在config.xml文件中指定模块,我们将不胜感激 像这样
<config>
<modules>
<[Namespace]_[Module]>
<version>1.0.0</version>
</[Namespace]_[Module]>
</modules>
<global>
<helpers>
<helloworld>
<class>packagename_Helloworld_Helper</class>
</helloworld>
</helpers>
</global>
</config>
1.0.0
packagename\u Helloworld\u助手
最简单的解决方案是添加一个“类别”,它会自动将您的内容添加到菜单中,然后使用url重写选项指示菜单项调用和指向的位置
有关以下内容的更多信息,请参阅:[哦,我忘了这个,但它没有帮助,没有什么真正的改变