Magento布局更新未加载
我试图进行布局更改,当后端加载页面时,我可以隐藏几个按钮,但我似乎无法触发布局更新。以下是我目前的代码。现在我不关心块本身的功能,只关心我的布局加载 config.xmlMagento布局更新未加载,magento,magento-layout-xml,Magento,Magento Layout Xml,我试图进行布局更改,当后端加载页面时,我可以隐藏几个按钮,但我似乎无法触发布局更新。以下是我目前的代码。现在我不关心块本身的功能,只关心我的布局加载 config.xml <config> <modules> <Mysite_Buttonhide> <version>0.1.0</version> </Mysite_Buttonhide> </mo
<config>
<modules>
<Mysite_Buttonhide>
<version>0.1.0</version>
</Mysite_Buttonhide>
</modules>
<adminhtml>
<layout>
<updates>
<buttonhide>
<file>buttonhide.xml</file>
</buttonhide>
</updates>
</layout>
</adminhtml>
<global>
<blocks>
<Buttonhide>
<class>Mysite_Buttonhide_Block</class>
</Buttonhide>
</blocks>
</global>
</config
0.1.0
buttonhide.xml
Mysite_按钮侧块
design->adminhtml->default->default->layout->buttonhide.xml
<adminhtml_sales_order_view>
<reference name="content">
<remove name="sales_order_edit"/>
</reference>
</adminhtml_sales_order_view>
将button.xml文件的内容包装到
<?xml version="1.0"?><layout>...</layout>
。。。
您应该会没事的。将button.xml文件的内容包装到
<?xml version="1.0"?><layout>...</layout>
。。。
你应该没事。所有这些看起来都是正确的。我想您已经刷新了缓存?您是否检查了模块是否实际处于活动状态?是的,模块处于活动状态,它列在模块输出的配置/高级列表中,是的,我在buttonhide.xml中禁用了缓存(但我还是转储了缓存,只是为了确保),您将其全部包装在标记中?…否?我应该…所有这些看起来都是正确的。我想您已经刷新了缓存?您是否检查了模块是否实际处于活动状态?是的,模块处于活动状态,它列在模块输出的配置/高级列表中,是的,我在buttonhide.xml中禁用了缓存(但我还是转储了缓存,只是为了确保),您将其全部包装在标记中?…否?我应该。。。