如何在Magento中从local.xml禁用remove语句 [英] How to disable a remove statement from local.xml in Magento
问题描述
是否可以从local.xml文件中禁用默认布局.xml文件中定义的<remove name="left">
语句?
Is it possible to disable a <remove name="left">
statement defined in a default layout .xml file, from the local.xml file?
例如,在<checkout_cart_index>
部分的checkout.xml中,在其中定义了语句<remove name="left"/>
,但是您可以从local.xml文件中禁用该行,因此您仍然可以在checkout上看到左侧菜单页面?
For example, in the checkout.xml in the <checkout_cart_index>
section, the statement <remove name="left"/>
is defined there, but can you disable that line from the local.xml file, so you still see the left menu on the checkout page?
推荐答案
默认情况下,Magento不为local.xml提供<unremove />
标记.但是,布局系统包含正确的事件,因此您可以自己实现此事件.所谓您自己",是指我创建了一个实验性扩展程序,其中添加了这样的标签.欢迎提供反馈.
By default Magento doesn't provide an <unremove />
tag for local.xml. However, the Layout system contains the right events, such that you can implement this yourself. And by "yourself", I mean I've created an experimental extension that adds such a tag. Feedback is welcome.
这篇关于如何在Magento中从local.xml禁用remove语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!