0

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?

1 Answer 1

1

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

public function isAdmin()
{
    if(Mage::app()->getStore()->isAdmin()){
        return true;
    }

    if(Mage::getDesign()->getArea() == 'adminhtml'){
        return true;
    }
    return false;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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