How can I overwrite a layout file from admin? I am able to change template files but not layout files. I want to add in head jQuery because right now it is added after prototype and I have problems when merging js. I just want to add in main.xml from adminhtml to load first jQuery. I don't want to change directly in the default theme.
I don't know how I missed that on magento commerce
It is actually simpler than I thought, just using the right code in config.xml of your module:
<admin> <design> <package> <name>default</name> </package> <theme> <default>your_custom_theme_name</default> </theme> </design> </admin>
Magento - Override adminhtml template/layout file
Add below code to config.xml file of extension (you created)
<stores> <admin> <design> <theme> <default>default</default> <template>rwd</template> </theme> </design> </admin>
Now create rwd folder under adminhtml/default folder package. app/design/adminhtml/default/rwd and create template and layout file as you want to override.
like we want to override order comment history.phtml file.
OR you can also override layout file like.