Magento News

 

Custom footer text for each page/product

by fishpig (Posted Wed, 05 May 2010 19:42:20 GMT)
Hey Mark,

if everything works when the cache is disabled the the problem is definitely the fact that Magento is caching the output of that block the first time is viewed.

Which of the two methods I demonstrated did you use? If you used the first method (using the XML) then adding the second FALSE parameter to getChildHtml should work fine. If you used the second method (creating the block using PHP) then you will need to apply the second parameter to getChildHtml in your main template where you include footer block like so:

Code:

// This will be in 2columns-left.phtml
// or 1column.phtml
// or any other main skeleton template
<?php echo $this->getChildHtml('footer'false?>

It should be pointed out though that depending what you have in the footer, you may suffer a slight performance hit. Likely though, you don’t have much dynamic content in your footer and won’t notice a difference.

Let me know if that worked!



http://magento-forum.co.uk/viewtopic.php?f=5&t=127#p862

Magento Forum

Possibly Related Posts:


 

Leave a Reply