2012-12-26 15 views
2

,所以我改變的catalog.xml代碼Magento的:從類別過濾器左邊也是我們的家顯示左側菜單

<catalog_category_layered translate="label"> 
<label>Catalog Category (Anchor)</label> 
<reference name="left"> 
    <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/> 
</reference> 
</catalog_category_default> 



<catalog_category_default translate="label"> 
<label>Catalog Category (Non-Anchor)</label> 
<reference name="left"> 
<!-- <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>--> 
<block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/> 
</reference> 
</catalog_category_default> 

我想補充留在我們的模板home.phtml過濾層,但它不工作 我也添加block home.phtml管理cms設計,但它不工作,所以任何一個告訴 我能做什麼?

回答

1

您是否檢查過左邊是否有名稱爲「貨幣」的區塊?這段代碼告訴Magento在名爲currency的塊後面添加它。

也許嘗試下面將它放在第一位。

<block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/> 
+0

我檢查它,但它不工作... –

+0

你能嘗試把它在佈局更新選項卡主頁 <引用名稱=「左」> <塊型=「目錄/ layer_view」名稱=「catalog.leftnav」before =「 - 」template =「catalog/layer/view.phtml」/> – ronnz

+0

是的,我把它放在主頁上,但它不工作。 –

相關問題