Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
litespeed_wiki:cache:litemage:customization:specialized-front-page-footer [2015/12/21 17:10]
Michael Alegre
litespeed_wiki:cache:litemage:customization:specialized-front-page-footer [2015/12/21 17:04] (current)
Michael Alegre
Line 20: Line 20:
   <?php endif; ?>   <?php endif; ?>
   ​   ​
-**Solution:​** Have the homepage specially handled so that the "​footer"​ hole will not be punched there. ​ +**Solution:​** Have the homepage specially handled so that the "​footer"​ hole will not be punched there. The first step in accomplishing this is to remove the dynamic portion of the footer block to allow the public "​footer"​ ESI block to continue being punched for other pages. Removing this dynamic code will also have the positive side effect of improving footer render time.
- +
-The first step in accomplishing this is to remove the dynamic portion of the footer block to allow the public "​footer"​ ESI block to continue being punched for other pages. Removing this dynamic code will also have the positive side effect of improving footer render time.+
  
   - Copy the footer template to a new file as "​homefooter.phtml"​. As this will only be used for the home page, there is no need to keep the added home page logic and the content can instead be added directly.<​code><​div class="​footer_bottom_text_container">​   - Copy the footer template to a new file as "​homefooter.phtml"​. As this will only be used for the home page, there is no need to keep the added home page logic and the content can instead be added directly.<​code><​div class="​footer_bottom_text_container">​
Line 29: Line 27:
        </​div>​        </​div>​
   </​div></​code>​   </​div></​code>​
-  - Update "​footer.phtml"​ by removing the aforementioned logic as this file will now be used for non-home pages only.+  - Update "​footer.phtml"​ by removing the aforementioned logic as this will only be used for non home pages only.
   - Identify the footer block section of the layout XML file currently in use. Copy the full footer block section, including all sub blocks used.   - Identify the footer block section of the layout XML file currently in use. Copy the full footer block section, including all sub blocks used.
   - In the Magento Admin Panel, navigate to CMS >> Pages and click edit to edit the home page.   - In the Magento Admin Panel, navigate to CMS >> Pages and click edit to edit the home page.
Line 38: Line 36:
        ...        ...
      </​block>​      </​block>​
-</​reference></​code>​ This removes ​the old footer block and adds the newly created homefooter.phtml template for the home page.+</​reference></​code>​ This removed ​the old footer block and added 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 important to include: <​code>​name="​homefooter"​ as="​footer"</​code>​ **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 important to include: <​code>​name="​homefooter"​ as="​footer"</​code>​
  • Admin
  • Last modified: 2015/12/21 17:10
  • by Michael Alegre