-
Magento: Static Blocks
- Posted: 21-Dec-09 12:16 by Andrew Flannery | <Permalink>
- Filed under: Software Development | Tags: magento, template, blocks
In a template file:
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('identifier')->toHtml(); ?>... or in a layout file:
<block type="cms/block" name="myblock" before="-"> <action method="setBlockId"> <block_id>myblock</block_id> </action> </block>



