Magento: Display Static Block via Custom Layout Update

We were needing to display a static block in the left column (of the 2-columns-left template). We only needed to display it for a few specific products though. There are a couple ways you can do it via Custom Layout Updates. In our case, the products were all in a specific category, and we wanted the static block to show up on the list view AND the product view. So, we put this code in on the product level and the category level:

<reference name="left">
    <block type="cms/block" name="static_block_identifier" before="-">
        <action method="setBlockId"><block_id>static_block_identifier</block_id></action>
This entry was posted in Magento. Bookmark the permalink.

4 Responses to Magento: Display Static Block via Custom Layout Update

  1. Marden says:

    That’s more than siensble! That’s a great post!

  2. Ovidius S. says:

    Is there a way to remove/not display a static block via Custom Layout Update? A block that I created myself. Not the newsletter, compare products or recently viewed products. A block that I don’t want on certain categories/pages.
    Please help and thanks a lot.

  3. Josh Frank says:

    THANK YOU!!! I am not very experienced with xml and I have been looking for this for a looooong time!