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
Possibly Related Posts:
- Magento USPS Shipping Method, add option / force Insurance by pmuskoff http://t.co/JMbzme8o
- #freelance jobs: Magento USPS Shipping Method, add option / force Insurance by pmuskoff: We run a Mage… http://t.co/X5syN4Xc #projects
- Magento USPS Shipping Method, add option / force Insurance by pmuskoff: We run a Magento store … http://t.co/cjTFzhit #freelance #work
- Magento USPS Shipping Method, add option / force Insurance by pmuskoff: We run a Magento store in… http://t.co/K4NdKyWs #magento #jobs
- We run a Magento store in which everything is shipped via USPS. We ship valuable products which need to be insu… http://t.co/JmW0PeR0
RSS Feed