Adding CMS Static Blocks to Magento Layouts

To add the cms block the the layout XML files:

<reference name="content">
    <block type="cms/block" name="products_text" before="-">
         <action method="setBlockId"><block_id>products_text</block_id></action>
    </block>
</reference>

products_text refers to the “identifier” field you filled out in the CMS. before=”-“ puts it at the top of the content block.

Leave a Reply

Your email address will not be published. Required fields are marked *