I want to place a specified Static Block in my category page on my Magento site. The code should look up if a specifically named Static Block exists, and if so display the content of it. I do this on a product page absolutely fine, but it appears that the Block Cache in a category breaks it.
I am using the code
$categoryBlock is a generated string in the form
category_redwidget. In the Static Blocks I have set up separate blocks called
The first page I visit the code works perfectly, however the block appears to be cached and the rest of the pages show the same CMS block on them, not the one that should show.
If I go to admin and turn off
Blocks HTML output it works fine, I don't want to do that though as it will slow the site down terriibly. I am looking at just stopping this Static Block cache.