Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:cache:litemage:customization:separate-front-page-footer [2015/12/21 17:32] Michael Alegre created |
litespeed_wiki:cache:litemage:customization:separate-front-page-footer [2015/12/21 17:39] Michael Alegre |
||
---|---|---|---|
Line 4: | Line 4: | ||
**For Example:** | **For Example:** | ||
+ | |||
+ | In the existing footer template "footer.phtml", there is a PHP script that dynamically determines whether the current page is the home page. | ||
+ | |||
<?php | <?php | ||
$page = Mage::app()->getFrontController()->getRequest()->getRouteName(); | $page = Mage::app()->getFrontController()->getRequest()->getRouteName(); | ||
Line 36: | Line 39: | ||
... | ... | ||
</block> | </block> | ||
- | </reference></code> This removes the old footer block and adds the newly created homefooter.phtml template for the home page. \\ \\ **Note:** The block name used here has to be unique, but the alias must remain the same as to not interfere with any applied logic. Thus, it is very important to include name="homefooter" as="footer" | + | </reference></code> This removes the old footer block and adds the newly created homefooter.phtml template for the home page. \\ \\ **Note:** The block name used here has to be unique, but the alias must remain the same as to not interfere with any applied logic. Thus, it is very important to include name="homefooter" as="footer". |
**Note:** **Blocks HTML output** should remain disabled under System >> Cache Management in the Magento Admin Panel. | **Note:** **Blocks HTML output** should remain disabled under System >> Cache Management in the Magento Admin Panel. | ||