2012-03-20 22 views
1

我需要建立它,因为它已经消失了!我有1.6.2 CE与Bluescale主题。由于菜单消失,我无法启动。如何构建Magento中的快速访问菜单?

+0

什么是“快速访问菜单”? – vsushkov 2012-03-20 15:43:00

+0

@vsushkov这是一堆链接:我的购物车,登录/注销等你可以看到一个样本:[林](http://web-experiment.info/magento14/bluescale/) – 2012-03-21 07:25:45

回答

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') ?> 

outputed所以,你必须检查你的layout文件和header.phtml寻找到top.links被删除或损坏。如果它不帮助尝试调试Mage_Page_Block_Template_Links逻辑。

+0

感谢您的答复。我认为问题是主题有一个自定义的顶部链接top.links.custom莫名其妙地没有出现。下面是在那个local.xml主题文件夹的代码:<引用名称= “标题”> \t \t \t <除去名称= “top.links”/> \t \t \t <块类型= “页/ template_links” Magento就是名称= “top.links.custom”as =“topLinksCustom”/> – 2012-03-22 10:33:55

+0

检查其内容是否在'page/html/header.phtml'输出。 – Sergey 2012-03-22 10:47:34