Php 如何在Magento中构建快速访问菜单?
我需要建造它,因为它已经消失了!我有1.6.2 CE和蓝调主题。由于菜单消失,我无法启动。最初,此块称为Php 如何在Magento中构建快速访问菜单?,php,xml,magento,Php,Xml,Magento,我需要建造它,因为它已经消失了!我有1.6.2 CE和蓝调主题。由于菜单消失,我无法启动。最初,此块称为top.links 它是在page.xml <block type="page/html_header" name="header" as="header"> <block type="page/template_links" name="top.links" as="topLinks"/> .... </block> 因此,您必须
top.links
它是在
page.xml
<block type="page/html_header" name="header" as="header">
<block type="page/template_links" name="top.links" as="topLinks"/>
....
</block>
因此,您必须查看您的
布局
文件和标题.phtml
,以找到顶部的位置。链接
被删除或断开。如果它不能帮助调试Mage\u Page\u Block\u Template\u链接
logic.什么是“快速访问菜单”?@vsushkov它是一组链接:我的购物车、登录/注销等。您可以在上看到一个示例:谢谢回复。我认为问题在于主题有一个自定义的top links top.links.custom,但它没有显示出来。下面是主题文件夹中local.xml的代码:检查其内容是否在page/html/header.phtml
中输出。
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
</reference>
<?php echo $this->getChildHtml('topLinks') ?>