2012-02-06 80 views
1

当我登录时,有时我的“注销”链接显示在顶部链接部分,有时不显示。Magento顶部链接“注销”链接有时不显示

似乎取决于特定的会话,即如果我关闭浏览器并稍后回来,它可能在那里。奇怪我知道。

此代码位于我的customer.xml中,有时似乎有效。

<!-- 
Load this update on every page when customer is logged in 
--> 

    <customer_logged_in> 
     <reference name="top.links"> 
      <action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action> 
     </reference> 
    </customer_logged_in> 

<!-- 
Load this update on every page when customer is logged out 
--> 

    <customer_logged_out> 
     <!---<reference name="right"> 
      <block type="customer/form_login" name="customer_form_mini_login" before="-" template="customer/form/mini.login.phtml"/> 
     </reference>--> 
     <reference name="top.links"> 
      <action method="addLink" translate="label title" module="customer"><label>Log In</label><url helper="customer/getLoginUrl"/><title>Log In</title><prepare/><urlParams/><position>100</position></action> 
     </reference> 
     <remove name="reorder"></remove> 
    </customer_logged_out> 

我想到了一些可能在稍后的负载链中覆盖它,但我找不到任何引用来删除此链接。

我也将这个确切的代码添加到应该最后加载的local.xml文件..没有运气那里。

对发生了什么事情有任何想法?我正在使用Magento 1.6.1社区。在我看来,这可能是一个错误,基于不规律的行为模式。

+0

我看不到“注销”,从来没有。 – 2012-06-08 10:44:45

回答