Skip to main content
1 of 3
Marius
  • 198.5k
  • 55
  • 424
  • 833

Add block to category page

I want to add a custom block to the category pages and not care if the the category is anchor or not or if it has children or not.
I want to add that block at the bottom of the page after the product list or static block.
So I added this in the layout file

<catalog_category_view>
    <reference name="content">
        <block type="some/block" tempalate="some/template.phtml" after="-" /><!-- notice the "after" attribute -->
     </reference>
</catalog_category_view>

the block appears in every category page but at the top of the page.
If I change the layout handle to catalog_category_default or catalog_category_layered everything works OK and I see my block at the bottom of the page.
Any idea why "after" is ignored for catalog_category_view handle?

Marius
  • 198.5k
  • 55
  • 424
  • 833