Magento Layout update not loading

480 views Asked by At

I am attempting to make a layout change that when a page in the backend loads that i can hide a few buttons, but i cannot seem to make my layout update trigger. following is my current code. Right now i am not concerned with the functionality of the block itself, only that my layout loads.

config.xml

<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

buttonhide.xml which is located in app->design->adminhtml->default->default->layout->buttonhide.xml

<adminhtml_sales_order_view>
    <reference name="content">
        <remove name="sales_order_edit"/>
    </reference>
</adminhtml_sales_order_view>
1

There are 1 answers

0
marcinsdance On BEST ANSWER

Wrap the content of your button.xml file in

<?xml version="1.0"?><layout>...</layout>

and you should be fine.