开发者

add link of custom module to user dashboard magento

can someone tell me how to add a link of custom module to user dashbord left navigation in magento. I tried to add

<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开发者_Python百科>account_view</name>
                <path>customer/account/view/</path>
                <label>Account Details</label>
            </action>
        </block>
    </reference>
</customer_account>

in my layout xml file but it is not working

thanks


Try this:

<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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜