In case you are performing a fair customization and hope to successfully upgrade to the next Magento release with no issues, you MUST NOT touch any of the core source files.
If you want to override something in the backend, simply create a new module, make it dependent from Mage_Adminhtml, make a link in it’s config.xml to the layout update file and then create that file as well. Now you can write layout update instructions that will override the existing layout settings.
There is no other way.
I’m just learning Magento and I’m trying to use this as a little trainer project. I know the way you’ve outlined here is definitely the way this needs to be done, and I think I’m close, but I’m not 100% sure where to go from here.
I created my own module at /app/code/local/Usbswiper/Adminhtml. Then I created /app/code/local/Usbswiper/Adminhtml/etc/config.xml with the following:
Then I added the following to my /app/etc/modules/Usbswiper_All.xml config file within the modules node…
Then I created /app/code/local/Usbswiper/Adminhtml/Block/Page/Header.php with the following in it…
class Usbswiper_Adminhtml_Block_Page_Header extends Mage_Adminhtml_Block_Page_Header
public function __construct()
So at this point I’m thinking my header would override the core admin header, but here’s where I’m. I haven’t quite gotten the grasp of working with template files so I’m not sure what to do from here (or if I’ve even done everything correctly up to this point).
Do I need to create my own directory under /app/design/adminhtml/default for my theme, and then create my version of template/page/header.phtml there? Or what exactly?
I feel like I’m on the right track but I could be completely wrong. Any information on this would be greatly appreciated.