добавить ссылку на пользовательский модуль на панель пользователя magento - PullRequest
1 голос
/ 29 сентября 2011

Может кто-нибудь сказать мне, как добавить ссылку пользовательского модуля на пользователя 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, но он не работает

спасибо

1 Ответ

3 голосов
/ 30 сентября 2011

Попробуйте это:

<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>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...