【发布时间】:2012-11-20 14:10:21
【问题描述】:
我正在尝试编辑基于 Magento 的网站主页的右侧边栏。当我在主页的Custom design 部分编辑Layout Update XML 字段时,我看到了这段代码:
<reference name="right">
<action method="unsetChild"><name>catalog.compare.sidebar</name></action>
<action method="unsetChild"><name>right.newsletter</name></action>
<action method="unsetChild"><name>cart_sidebar</name></action>
<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page"/>
</reference>
但我找不到块标记中指定的布局在哪里。当我删除整个代码时,侧边栏仍在显示,但比较侧边栏 Widet 位于侧边栏的其余部分之上。
我是 Magento 的新手,有点迷茫。感谢您的帮助。
【问题讨论】:
-
你到底想达到什么目的?
-
我需要更改构成侧边栏的静态块。我可以单独编辑静态块,但我需要完全删除侧边栏的一些块。
-
在
<reference name="right"/>中使用<remove name="block_name"/>节点。
标签: magento