简体   繁体   English

将类别分层导航移动到侧边栏Magento的底部

[英]Move Category Layered Navigation to bottom of sidebar Magento

Magento 1.9 rwd theme I cannot get the Category Layered Navigation to move. Magento 1.9 rwd主题我无法移动类别分层导航。 I can remove it but I don't want to remove it. 我可以删除它,但是我不想删除它。 I just want to move it. 我只想移动它。 cannot get it to respond to either "unsetChild" or before/after. 无法使其响应“ unsetChild”或之前/之后。 I have tried every suggestion I can find and nothing will work. 我已经尝试了所有可以找到的建议,但没有任何效果。 What I really want is the "regular" category navigation in the left block with the layered navigation below it but the layered navigation will not budge. 我真正想要的是左侧块中的“常规”类别导航,其下方是分层导航,但是分层导航不会让步。 This is what I have now: 这就是我现在所拥有的:

 <catalog_category_layered> <reference name="left"> <block type="catalog/navigation" name="catalog.leftnav.categories" before="currency" template="catalog/navigation/left.phtml"/> </reference> <reference name="catalog.leftnav"> <action method="unsetChild"><child>category_filter</child></action> </reference> </catalog_category_layered> 

I have tried a variety of combinations on the layered navigation. 我在分层导航中尝试了多种组合。 In my catalog.xml I have changed the placing to after="-". 在我的catalog.xml中,我已将放置位置更改为after =“-”。 I have changed the compare sidebar to before. 我将比较侧边栏更改为之前的内容。 I have tried many combinations of the below code in my local.xml 我在local.xml中尝试了以下代码的许多组合

 <reference name="left"> <action method="unsetChild"><alias>catalog.leftnav</alias></action> </reference> <reference name="left"> <action method="insert"><blockName>catalog.leftnav</blockName></action> </reference> 

Any help is appreciated. 任何帮助表示赞赏。

Figured it out. 弄清楚了。 The reference name needs to be 参考名称必须为

 <reference name="left_first"> 

instead of just 而不只是

 <reference name="left"> 

The code is as follows 代码如下

 <catalog_category_layered> <reference name="left_first"> <block type="catalog/navigation" name="catalog.leftnav.categories" before="-" template="catalog/navigation/left.phtml"/> </reference> <reference name="catalog.leftnav"> <action method="unsetChild"><child>category_filter</child></action> </reference> </catalog_category_layered> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM