Just a quick little trick to get Magento to include different CMS blocks per category whilst using the same template. This is useful for varying the additional content that appear within each category. Here’s how to do it:
In your template file add
<!-- CMS Block - Category View - Right Column -->
$_var1 = 'category_right_' . strtolower(Mage::registry('current_category')->getName());
This will try and call a CMS block with the name ‘category_right_cateogryname’. Obviously this will vary according to the categories you have in your site but for each different category you need to add the following into \app\design\frontend\OC\default\layout\core\default.xml where ever you want them to appear.
<block type="cms/block" name="category_right_ladieswear">
<block type="cms/block" name="category_right_menswear">
It’s not the most elegent solution but perhaps it will get someone thinking about how to improve the CMS usagae within Magento.