Add static blocks to phtml or cms page
Add static blocks to phtml file, like header.phtml or footer.phtml.
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('menu')->toHtml() ?>
Add static block to cms page, in xml
<reference name="left">
<block type="cms/block" name="footermenu">
<action method="setBlockId"><block_id>footermenu</block_id></action>
</block>
</reference>
阅读其他美文