开发者

add link of custom module to user dashboard magento

开发者 https://www.devze.com 2023-04-09 03:22 出处:网络
can someone tell me how to add a link of custom module to user dashbord left navigation in magento. I tried to add

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

精彩评论

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

关注公众号