2011-09-29 90 views
1

有人可以告诉我如何自定义模块的链接添加到在Magento左侧导航用户dashbord。我尝试添加添加自定义模块的链接,用户面板的Magento

<customer_account> 
    <reference name="left"> 
     <block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml"> 
      <action method="addLink" translate="label" module="customer"> 
       <name>account_view</name> 
       <path>customer/account/view/</path> 
       <label>Account Details</label> 
      </action> 
     </block> 
    </reference> 
</customer_account> 

在我的布局XML文件,但它不能正常工作

感谢

+0

您正在使用什么版本的Magento的? –

回答

3

试试这个:

<customer_account> 
    <reference name="customer_account_navigation"> 
     <action method="addLink" translate="label" module="customer"> 
      <name>yournamespace_yourmodule</name> 
      <path>module/controller/action</path> 
      <label>Label</label> 
     </action> 
    </reference> 
</customer_account> 
+0

这是在其中添加该代码的文件?总是在你的答案补充完整描述。谢谢 –