[英]Magento $this->getChildHtml('topMenu') not displaying the menu
我正在重新开发Magento网站。
我尝试显示菜单,并在其中使用它:
<?php echo $this->getChildHtml('topMenu'); ?>
在page.xml中,引用为:
<block type="page/html_header" name="header" as="header">
<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
<label>Navigation Bar</label>
</block>
</block>
为什么不显示菜单,我不知道。
问候
在page.xml
必须像这样:
<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
<label>Navigation Bar</label>
<block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
</block>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.