This is an old revision of the document!
Using A Specialized Footer On Your Front Page
Some websites use a specialized footer containing extra information (usually for SEO purposes) on their front page. This is usually done by determining if the current page is the homepage in the footer template. This dynamic logic makes the footer not cache friendly, as LiteMage will punch a hole for the “footer” block as a public block. This means that whichever version of the footer, specialized or regular, LiteMage encounters first will be be the version that is served on every page.
For Example:
<?php $page = Mage::app()->getFrontController()->getRequest()->getRouteName(); $isHomepage = false; if($page == 'cms'){ if('home' == Mage::getSingleton('cms/page')->getIdentifier()){ $isHomePage = true; } } if($isHomepage): ?> <div class="footer_bottom_text_container"> <div class="footer_bottom_text"> <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer_bottom_text')->toHtml() ?> </div> </div> <?php endif; ?>