Showing posts with label Check If Home Page Magento. Show all posts
Showing posts with label Check If Home Page Magento. Show all posts

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;