Can't add layered navigation block into CMS page

早过忘川 提交于 2019-12-31 02:55:26

问题


I need to show new products on a CMS page. It works fine. Then I need to add the layered navigation block on the left to filter out the selection. But it never works. I add this code into the Layout Update XML field:

<reference name="left">
  <block type="catalog/navigation" name="catalog.leftnav" template="catalog/navigation/left.phtml"></block>
</reference>

I tried with block type core/template, but it still doesn't work. Does anyone know why it never works?


回答1:


you can not call layer navigation using this type of code.For layer navigation on cms yo u need a category or if you do not have category then put root category id,whose id 2(Default category) here details of link

https://stackoverflow.com/questions/21241181/cms-page-with-layered-navigation-not-working/21242296#21242296https://stackoverflow.com/questions/21241181/cms-page-with



来源:https://stackoverflow.com/questions/21767549/cant-add-layered-navigation-block-into-cms-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!