复制差异页面上的块-magento
我要复制此页面左侧由高级搜索筛选器组成的view.phtml块: 要位于此页面上的学习中心块上方,请执行以下操作:复制差异页面上的块-magento,magento,static,e-commerce,block,Magento,Static,E Commerce,Block,我要复制此页面左侧由高级搜索筛选器组成的view.phtml块: 要位于此页面上的学习中心块上方,请执行以下操作: 我尝试将view.phtml代码复制到catalog.xml文件中,并将其放在学习中心.phtml上方,并出现php错误如果您想在catalogsearch\u result\u index页面中显示,请在此标记中转到catalog.xml并创建以下行: <reference name="search.layer.view"> <block typ
我尝试将view.phtml代码复制到catalog.xml文件中,并将其放在学习中心.phtml上方,并出现php错误如果您想在
catalogsearch\u result\u index
页面中显示,请在此标记中转到catalog.xml并创建以下行:
<reference name="search.layer.view">
<block type="catalogsearch/layer" name="catalogsearch.leftnav" after="currency" template="catalog/layer/view.phtml"/>
</reference>
然后在page.xml中的默认标记内创建新引用:
<block type="core/text_list" name="search.layer.view" as="search.layer.view" translate="label">
</block>
然后在您的学习中心phtml中调用它,如下所示:
<?php echo $this->getChildHtml('search.layer.view') ?>
我认为这将帮助您:-]如果您想在
目录搜索\u结果\u索引
页面中显示,请转到此标记中的catalog.xml并创建以下行:
<reference name="search.layer.view">
<block type="catalogsearch/layer" name="catalogsearch.leftnav" after="currency" template="catalog/layer/view.phtml"/>
</reference>
然后在page.xml中的默认标记内创建新引用:
<block type="core/text_list" name="search.layer.view" as="search.layer.view" translate="label">
</block>
然后在您的学习中心phtml中调用它,如下所示:
<?php echo $this->getChildHtml('search.layer.view') ?>
我想这会对你有帮助:-]