Return to Snippet

Revision: 50984
at September 10, 2011 07:18 by rc2789


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

Initial URL

                                

Initial Description

                                

Initial Title
magento if home

Initial Tags
textmate

Initial Language
Other