如何识别magento xml节点

时间:2013-11-27 10:03:47

标签: xml magento

他们是否有正确的方法来识别Magento中* .xml文件中的节点名称 例如。

    <customer_account>
        <reference name="customer_account_navigation">
            <action method="addLink" module="Trimantra_Helloworld">
                <name>helloworld</name>
                <path>helloworld</path>
                <label>Hello World</label>
             </action>
        </reference>
    </customer_account>

此xml代码块在我的帐户页面中添加了指向客户导航块的链接。

他们是否有任何方法可以确定我们应该使用“<customer_account>”而不是任何其他东西来添加链接。

很难确定使用哪个节点来更新前端和后端的特定部分。

例如。如果有人想要添加新的部分来订购发票页面(管理面板),我们如何识别在自定义模块xml文件中使用哪个节点。

我希望我的问题清楚明白。

1 个答案:

答案 0 :(得分:0)

此节点代表模块,控制器和操作。

<customer_account> represents module=>customer,controller=>account,action=>*
<customer_account_login> will represent module=>customer,controller=>account,action=>login

对于销售发票视图页面,模块为adminhtml,控制器为sales_order_invoice,操作为查看,因此标记为<adminhtml_sales_order_invoice_view> 或者只是你可以按照浏览器网址来确定它的标签,但要注意后端url的管理员实际上代表adminhtml模块

相关问题