I wanted to provide a different style and markup for the notices. I thought these were found in a template file 'core/messages' but it turns out the output comes from a block Mage_Core_Block_Messages. When I override this block within my own custom module it works fine. But then in the admin area it also adopts this same markup and style.

How can I avoid this?


you can find whether request is from admin side or from frontend

public function isAdmin()
        return true;

    if(Mage::getDesign()->getArea() == 'adminhtml'){
        return true;
    return false;
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.