[英]Magento - left.ptml not showing on all product list pages
left.phtml在magento页面上显示左侧导航的文件仅显示在一个列表视图页面上,而其他任何人都没有解决方案来使该文件显示在所有列表视图中
If you are tasking left.phtml, 如果您要分配left.phtml,
Then According magento structure left.phtml
are only show for Non-Anchor category
in it left side of category
. 然后,根据
magento structure left.phtml
仅在Non-Anchor category
的left side of category
显示Non-Anchor category
left side of category
。
And layer navigation
are only showing for Anchor category
.for anchor left.phtml is not showing. 并且仅针对
Anchor category
显示layer navigation
对于锚left.phtml不显示。
For non-Anchor categories
see catalog.xml code 请参阅catalog.xml代码
<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"/>
</reference>
Also for 也用于
Anchor categories
see at catalog.xml 参见catalog.xml
<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>
Hope ,you will understand
. 希望,你会
understand
。
If you are trying to add navigation to CMS page - try to google this topic (how to add navigation to CMS page). 如果您尝试将导航添加到CMS页面,请尝试使用Google主题(如何将导航添加到CMS页面)。 There are many examples and I don't want to duplicate them.
有很多示例,我不想重复它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.