[英]show magento scope switcher in admin grid edit form
我正在magento admin中的一个模块上工作,在这里我要显示scope selector
如管理产品,管理类别,网格编辑表单的系统配置。
谁能帮助我该如何添加该store values in database specific to the scope selected
?
通过搜索商店切换器,您可以看到Magento通过将其添加到布局文件中来添加它:
<your_layout_handle_here>
<reference name="left">
<block type="adminhtml/store_switcher" name="store_switcher" template="store/switcher.phtml" />
</reference>
</your_layout_handle_here>
对于不显示确认警报的情况,请像在核心中一样在此块中添加一个操作
<block type="adminhtml/store_switcher" name="store_switcher" before="-">
<action method="setUseConfirm"><params>0</params></action>
</block>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.