Thursday, October 17, 2013

Custom admin theme in Magento


Featured Image
As mentioned on Magento forums the easiest way to achieve this is with overriding adminhtml config with your local custom one and activate it as module.
This is just a small example of different approach with Admin Theme config option in admin panel, to show you how things can be done in different ways in Magento.

Since this is one of those “code talks, talk walks” examples, here it is: admintheme_example.rar.

It’s great example of small Magento module with simple event hooking and adding configuration fields through system.xml.
Follow directory structure, copy files to their place and you will notice new “Admin Theme” option in System->Configuration->General->Design (Default Config scope). Your theme goes in app/design/adminhtml/default/yourthemename folder. It doesn’t need to be whole theme of course, just the files you’re changing.

How to Use Custom Admin Path in Magento 1.7.0.2

              Last couple of days I am straggling with Magento. I am using the latest version of magento which is 1.7.0.2 at this time.

              Magento is a quite smart e-commerce solution for small/mediam/large business. That’s why I choose this for our little start-up business. But sad news is, there is not enough resource for learning this nice CMS. Also maximum resource is out of date.

              For security reason I need to change the admin login URL so that no one can try to login my admin panel unless s/he know the URL. I searched a lot for change the URL path and get a lot of blog/suggestion article but none is working for me. Some suggest to change the config.xml from app/code/core/adminhtml/etc but that is not working as well.
But after examine the admin panel I found an easy solution for this issue. Magento 1.7.0.2 obviously make a vast change than 1.4 (maximum resource is available for 1.4) Login to admin panel then go to System > Configuration. From Left bar navigate Advance Section admin menu. There you find something like following

Magento Admin Base URL

Magento Admin Base URL
Click over Admin Base URL tab and in Custom Admin Path text box write your desire admin Path (ex. adminlogin) After save config you will ask to login again. Check your login URL, you will find your desire custom path (in this case adminlogin) there.