Wednesday, 18 December 2013

Get Current page is home page in magento


Get Current page is home page in magento

if(Mage::getSingleton('cms/page')->getIdentifier() == 'home'  &&
   Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' ):

     // statment

endif;

No comments: