Skip to content

Magento: No theming system for Admin phtml files

Magento has a nice theming system for front-end files: you can define different theme folders for front end components, and Magento will look in the defined folders for needed view files before defaulting to its default folders. This makes it easy to override front-end phtml files. However, I didn’t realize until today that this system is not in place for adminhtml files. So, for example, I wanted to change a default coupon code value this morning. If I change the default file, my changes will be overwritten when we upgrade to a new version of Magento. Bad news!

This wiki post explains how to effect upgrade adminhtml changes by overriding the Adminhtml block class.

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/admin/changing_the_adminhtml_template

Quite straightforward-but not as easy as the front end theming system. Hopefully in future versions, that system will be migrated to the admin side-it would be great to be able to change admin views without having to override a core class.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*