Magento admin link to website

Posted on October 26th, 2012 | Posted by admin

Easily create your own link from the Magento admin panel to the frontend website.

One frustrating omission from the standard Magento admin panel is the lack of a link to the main website. Sure you can copy and paste the URL into a new tab or window, but when your developing a lot of sites, it’s nice just to have a link there ready.

So without further ado…

1. Open your admin header.phtml file into your favorite text editor, find it here:


Creating Custom Configuration Options in Magento Admin

Posted on September 29th, 2012 | Posted by admin

As a Magento developer you frequently encounter the Configuration page of  Magento admin backend. But have you ever noticed how these configuration pages are created and where are those configuration options saved? If not don’t worry, today I will tell you how to create an admin configuration page for you custom module. You might wonder that their is no ‘.phtml’ involved in this configuration page. Shocked! Its ok, we have to play only with the xmls to create this functionality. So now lets start the development.

magento theme

Template Path Hints for Admin Panel Magento

Posted on October 12th, 2011 | Posted by admin

Magento has a built in feature called template path hints to identify the path of frontend template files and its block classes. But Sometimes you need to locate the path of adminhtml template files. Recently while searching the magento forum i got this solution. So to enable template hints for the adminhtml. Follow the below step
Step 1: Change the file app/code/core/Mage/Core/etc/system.xml as follows:

How to translate form labels in Magento’s Admin Area

Posted on July 11th, 2011 | Posted by admin

Since Magento has built in functionality for translations, you can ask yourself why Magento doesn’t want to translate my labels… and everything is set up correctly!
For all of you who work on Magento for a while and you didn’t yet needed to translate everything in Magento admin area here is a short “howto” on what you can do:
go to app/code/core/Mage/Adminhtml/Block/Widget/Form.php
and find protected function _setFieldset($attributes, $fieldset, $exclude=array())
Instead of this line

//'label'     => $attribute->getFrontend()->getLabel(),
//put this:
'label' => Mage::helper('core')->__($attribute->getFrontend()->getLabel()),

Of course you will not change Magento’s core file in this way  (more below).

Insert dynamical menu in Magento’s Admin

Posted on June 8th, 2011 | Posted by admin

Hello everyone! I’ve recently got frustrated with Magento’s core functionality which requires XML definition for Administration menus. And I really wanted to add quick website / store links to it. Solution was to overwrite one of Magento’s Adminhtml blocks, and inject my non-XML, dynamic menu to it. If you’re interested in how I did it, read on.

To make it upgradeable, and painless, I’ve decided to make an extension just for this. It consists of only 2 Files, config.xml, and one Block rewrite.

First, I’ve created config.xml, and set it like this:

Page 2 of 3«123»