我尝试阅读文档,但我仍然不太了解magento的xml布局文件是如何工作的.
在目录中app/design/frontend/default/modern/layout,我看到了很多xml文件.如何确定网站上任何给定页面使用的xml文件?
例如,如果我在主页上http://mysite.com,我使用哪个布局xml文件?如果我在http://mysite.com/hello-world,那么xml文件怎么办?
我试图通过我的模块的布局文件即mymodule.xml中的布局更新来更改checkout/cart.phtml
<layout>
<checkout_cart_index>
<reference name="checkout.cart">
<action method="setCartTemplate"><value>mymodule/checkout/cart.phtml</value></action>
</reference>
</checkout_cart_index>
</layout>
Run Code Online (Sandbox Code Playgroud)
但它不起作用.有线索吗?