如何在magento的标题顶部链接中显示“我的愿望列表”

如何在magento的标题顶部链接中显示“我的愿望列表”,magento,Magento,我将我的magento站点从1.4.1.1升级到了magento 1.7.0.2 之后,我的愿望列表链接不会显示在标题右上角 我如何显示这个 我在customer.xml文件中使用了以下代码: <reference name="top.links"> <action method="addLink" translate="label title" module="customer"><label>My Wishlist</labe

我将我的magento站点从1.4.1.1升级到了magento 1.7.0.2

之后,我的愿望列表链接不会显示在标题右上角

我如何显示这个

我在customer.xml文件中使用了以下代码:

<reference name="top.links">
            <action method="addLink" translate="label title" module="customer"><label>My Wishlist</label><url helper="customer/getAccountUrl"/><title>My Wishlist</title><prepare/><urlParams/><position>10</position></action>
</reference>
但它不会在登录后链接到愿望列表


那么我如何链接它呢?没有正确的链接?

您可以通过如下布局规则将链接添加到标题。我从app/design/frontend/base/default/layout/customer.xml为您获取了这个示例


@安东S,我需要显示我的愿望列表链接,其他链接也会显示。这是缺少的链接。我应该在哪里编写上述代码?是在app/design/frontend/base/default/layout/customer.xml中还是在其他位置?基于您在评论中提出的问题,我认为您需要了解Magento layout engine,以及它是如何使用xml构建的,以及主题是如何定义的基于此进行渲染。从magento知识库开始,或者购买Alan Storm的伟大的无装饰magento布局书,以供将来参考。如果不为你做所有的工作,很难在这里解释它。通常,您需要将其放置到布局文件中,该文件包含在您需要的位置中,并从您自己的块或一些已经存在的核心块中获取链接
<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</p$
</reference>