2013-11-27 49 views
0

它们是在Magento的* .xml文件中识别节点名称的正确方法。
例如,如何识别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文件中使用哪个节点。

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

回答

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模块