Car*_*rpy 1 block magento layered-navigation
在category.xml我更改引用名称中:
<reference name="left">
<block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/>
</reference>
Run Code Online (Sandbox Code Playgroud)
要content我假设将放置分层nav进入中心。但是,它仍然停留在左侧。实际上,即使我更改left为right,它仍然也不会从左侧边栏移动。
我在这里做错了什么?
我设法通过注释掉或删除下面的调用来解决了此问题(针对其他遇到此问题的人)catelog.xml:
<reference name="left">
<block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/>
</reference>
Run Code Online (Sandbox Code Playgroud)
然后在name="product_list"下面的代码块中添加此行。
<block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>
Run Code Online (Sandbox Code Playgroud)
然后在list.phtmlecho中,如下所示:<?php echo $this->getChildHtml('filter');?>