开发者

Magento - Edit sidebar naviagtion on Customer's Account dashboard

开发者 https://www.devze.com 2023-01-15 00:49 出处:网络
which file controls the links in the sidebar navigation on a customer\'s account dashboard? thanks EDIT : i\'m trying to edit the text on these links (eg. change \"Newsletter Subscrip开发者_开发知识

which file controls the links in the sidebar navigation on a customer's account dashboard?

thanks

EDIT : i'm trying to edit the text on these links (eg. change "Newsletter Subscrip开发者_开发知识库tions" to "Latest News" maybe)


Those links are built up from the different layout XML files. The customer.xml file creates the left hand nav block:

 <customer_account translate="label">
   ...
    <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</name><path>customer/account/</path><label>Account Dashboard</label></action>

and then other layouts add links e.g. :

<customer_account>
    <!-- Mage_Newsletter -->
    <reference name="customer_account_navigation">
        <action method="addLink" translate="label" module="newsletter"><name>newsletter</name><path>newsletter/manage/</path><label>Newsletter Subscriptions</label></action>
    </reference>

So to edit the text of the Newsletter link, you need to edit the label node in newsletter.xml in your theme.

HTH, JD

0

精彩评论

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

关注公众号