0
我正在运行带有RWD主题的Magento 1.9.1.0。当将页面布局设置为2 columns with left bar
时,我可以正确地看到左侧栏中的过滤器(按价格等进行排序)。我如何才能在1 column
页面布局中工作(仅适用于类别)?我想在我的产品顶部使用像Catalin SEO目录分层导航(幻灯片价格栏等)的东西来创建此全角版本。将过滤分层导航添加到1列分类Magento中的页面
我正在运行带有RWD主题的Magento 1.9.1.0。当将页面布局设置为2 columns with left bar
时,我可以正确地看到左侧栏中的过滤器(按价格等进行排序)。我如何才能在1 column
页面布局中工作(仅适用于类别)?我想在我的产品顶部使用像Catalin SEO目录分层导航(幻灯片价格栏等)的东西来创建此全角版本。将过滤分层导航添加到1列分类Magento中的页面
1column.phtml模板没有左侧的块,这是通常注入层视图块的位置。在local.xml中做到这一点的方法之一是把在内容的块(或after_body_start或before_body_end,或任何核心/ text_list子块):
<catalog_category_default>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
<block type="core/text_list" name="catalog.leftnav.state.renderers" as="state_renderers" />
</block>
</reference>
</catalog_category_default>
在你的CSS,你可以隐藏层块HTML如果你不想显示,但仍然希望它加载:
.category-mycategory .block-layered-nav {
display: none;
}
mycategory是你的类别名称。