How to Override Admin Theme Template in Magento 1.9

adminmagento-1.9overridesPHPtemplate

I would like to override app/design/adminhtml/default/default/template/page.phtml

i'm currently using an extension that overrides app/design/adminhtml/default/default/template/page/header.phtml
with a file in app/design/adminhtml/default/default/template/extname/page/header.phtml

i have recently made changes to the page.phtml file, but i would like to override it in the right way, but i'm not sure how. i was going through the codes to see how the extension developers override header.phtml but i cant figure it out.

can anyone tell me how to override this specific file?

Best Answer

Go to your extension's admin layout file or create one if you don't have yet.

default/default/layout/your_xml.xml

and add this in default section:

<layout>
    <default>
       <reference name="root">
          <action method="setTemplate">
              <template>your_path/page.phtml</template>
          </action>
       </reference>
    </default>
</layout>

I haven't tested but should work. Good luck.

Related Topic