Posted By

rc2789 on 09/10/11


Tagged

textmate


Versions (?)

magento if home


 / Published in: Other
 

  1. <?php if(Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' && Mage::getSingleton('cms/page')->getIdentifier() == 'home') : ?>
  2. <h1>This is the home page!</h2>
  3. <?php else : ?>
  4. <h2>This is NOT the home page! :(</h2>
  5. <?php endif; ?>

Report this snippet  

You need to login to post a comment.