如何在Magento中构建快速访问菜单?

时间:2012-03-20 14:18:01

标签: php xml magento

我需要建立它,因为它已经消失了!我有1.6.2 CE与Bluescale主题。由于菜单消失,我无法启动。

1 个答案:

答案 0 :(得分:0)

最初这个区块叫top.links
它是在page.xml

中创建的
<block type="page/html_header" name="header" as="header">
            <block type="page/template_links" name="top.links" as="topLinks"/>
....
</block>

然后每个块都在那里添加链接。例如客户模块:

        <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>

此块已在page/html/header.phtml

中输出
<?php echo $this->getChildHtml('topLinks') ?>

因此,您必须查看layout个文件和header.phtml,以查找删除或删除top.links的位置。如果无法尝试调试Mage_Page_Block_Template_Links逻辑。

相关问题