有人可以告诉我如何在magento中向用户dashbord左侧导航添加自定义模块的链接。我试着添加
<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 :(得分: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>