Php 控制magento左导航渲染的位置
我想更改magento左导航的渲染位置,以便将其放置在给定类别上设置的静态CMS块之后,但实际类别产品之前 目前在目录中,我已经设置了类别Php 控制magento左导航渲染的位置,php,html,css,xml,magento,Php,Html,Css,Xml,Magento,我想更改magento左导航的渲染位置,以便将其放置在给定类别上设置的静态CMS块之后,但实际类别产品之前 目前在目录中,我已经设置了类别 <reference name="content"> <block type="catalog/layer_view" name="catalog.leftnav" template="catalog/layer/view.phtml"> <block type="core/tex
<reference name="content">
<block type="catalog/layer_view" name="catalog.leftnav" template="catalog/layer/view.phtml">
<block type="core/text_list" name="catalog.leftnav.state.renderers" as="state_renderers" />
</block>
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
这使得它至少在col main div中,但它仍然呈现在静态CMS之上,而静态CMS是通过catalog/category/view.phtml输出的,我想
我需要它在静态块之后渲染,因为该块本质上是一个全宽的横幅
当前html输出为
<div class="col-main">
<aside class="col-left sidebar col-md-3 col-xl-2 col-left-first" style="min-height: 1003px;">
</aside>
<section class="category-top"><img alt="" src="/skin/frontend/rwd/thejewelhut/images/cat/pandora.png">
</section>
<section class="category-topmobile"><img alt="" src="https://placehold.it/768x300"></section>
<div class="col-main col-md-9 col-xl-10 category-products">
</div>
</div>
期望的输出是
<div class="col-main">
<section class="category-top"><img alt="" src="/skin/frontend/rwd/thejewelhut/images/cat/pandora.png">
</section>
<section class="category-topmobile"><img alt="" src="https://placehold.it/768x300"></section>
<aside class="col-left sidebar col-md-3 col-xl-2 col-left-first" style="min-height: 1003px;">
</aside>
<div class="col-main col-md-9 col-xl-10 category-products">
</div>
</div>
只有细微的差别,但却造成了所有的差别
想法?尝试在左导航块中放在=-之前:
<block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml">
<block type="core/text_list" name="catalog.leftnav.state.renderers" as="state_renderers" />
</block>
恐怕这会使它处于与目前完全相同的位置。