magento如何在system.xml中添加动态url路径
我在支付网关上工作。但我有一个问题,我做了谷歌研究,但找不到任何解决方案,我希望我能在这里得到解决方案,所以我在这里张贴 遵循my system.xml代码块magento如何在system.xml中添加动态url路径,magento,system.xml,Magento,System.xml,我在支付网关上工作。但我有一个问题,我做了谷歌研究,但找不到任何解决方案,我希望我能在这里得到解决方案,所以我在这里张贴 遵循my system.xml代码块 <title translate="label"> <label>Title</label> <comment><![CDATA[<img src="/media/billmate/images/billmate_bank_s.png" />]]>&l
<title translate="label">
<label>Title</label>
<comment><![CDATA[<img src="/media/billmate/images/billmate_bank_s.png" />]]></comment>
<frontend_type>text</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</title>
标题
文本
3.
1.
1.
1.
在这个区块中,问题就在注释标签中,现在我在这里放置了静态链接
/media/billmate/images/billmate_bank_s.png
请任何人建议我如何使其动态来自system.xml
的元素可以有动态注释。注释可以通过模型呈现。您需要像这样声明注释字段:
<comment>
<model>module/adminhtml_comment</model>
</comment>
像下面
<title translate="label">
<label>Title</label>
<comment>
<model>module/adminhtml_comment</model>
</comment>
<frontend_type>text</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</title>
标题
模块/管理员注释
文本
3.
1.
1.
1.
从
getCommentText
方法返回值您到底想做什么?使用magento,对吗?是的,使用magento 1。7@R.S我正在尝试使动态评论标签现在评论标签包含静态图像路径是不正确的
<title translate="label">
<label>Title</label>
<comment>
<model>module/adminhtml_comment</model>
</comment>
<frontend_type>text</frontend_type>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</title>