【问题标题】:Adding layered navigation to custom theme (magento)向自定义主题添加分层导航(magento)
【发布时间】:2014-09-25 02:28:14
【问题描述】:

如何添加/激活分层导航?

我已经构建了一个自定义 magento 主题,该主题目前仅在产品列表页面上显示类别。我希望它现在显示分层导航,但问题是我似乎无法弄清楚如何显示它。我想我在构建它时搞砸了,产品列表页面引用了顶部导航。

我对我的 catalog.xml 文件或 view.phtml 文件所做的任何更改以引用分层导航似乎都不会在前端生成任何分层导航代码(因此没有分层导航)。

所有类别都设置为锚点并显示在导航中,我不知道还能尝试什么。

【问题讨论】:

    标签: magento magento-1.5


    【解决方案1】:

    在 catelog.xml 上试试这个

    <catalog_category_default translate="label">
    <reference name="content">
        <block type="catalog/layer_view" name="catalog.contentnav" template="catalog/layer/view.phtml"/>
    </reference> 
    

    【讨论】:

    • 我试过了,但什么也没发生。我认为问题一定在于我如何引用 /catalog/view.phtml 中的导航,我已将其移至 magento.stackexchange 并添加了指向 view.phtml 和 catalog.xml magento.stackexchange.com/questions/37013/… 的链接
    猜你喜欢
    • 1970-01-01
    • 2013-04-15
    • 1970-01-01
    • 2011-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多