在Magento模块配置中,show_in_default = 0会不寻常吗?
我只是在所有 sytem.xml 文件中查找了值为 0 的 show_in_default,但返回的结果很少。运输模块中的导出按钮就是关于它的。为什么如此不寻常?我正在考虑让用户设置一次配置设置,然后一旦设置一次,他们就无法更改它。拥有默认/网站/商店范围的内容会使事情变得尴尬,因此我考虑只显示网站范围内的设置。这是一件有效的事情吗?
I just grepped through all the sytem.xml files for show_in_default having a value of 0, and it came back with very little. An export button in the Shipping module was about it. Why is it so unusual? I am thinking of having a configuration setting that I let the user set once, and then once it has been set once, they cannot change it. Having the Default/Website/Store scope stuff makes that awkward, and so I was thinking of only showing the setting at the Website scope. Is that a valid thing to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,它是有效的,您可以根据需要定义范围。但这明智吗?
yes it is valid and you can define your scope as you like. But is it wise?