是他们在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文件中使用哪个节点。
我希望我的问题足够清晰易懂。
此节点表示模块、控制器和动作。
<customer_account> represents module=>customer,controller=>account,action=>*
<customer_account_login> will represent module=>customer,controller=>account,action=>login
S类似于销售发票视图页面,模块为adminhtml,控制器为sales_order_invoice,操作为view,因此标签变为<adminhtml_sales_order_invoice_view>
或者,您可以简单地按照浏览器url来确定其标记,但要注意,在后端url的admin实际上代表adminhtml模块