假设我们在后台菜单cms–>static block位置建立一个Identifier叫做“footer-customer-care”的静态块。

1.在模板文件中引用静态块:


< ?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer-customer-care')->toHtml() ?>

2.在布局文件中添加静态块:


< block type="cms/block" name="customer_care">
    < action method="setBlockId">
         < id>footer-customer-care< /id>
    < action>
< /block>

3.在CMS页面中添加静态块:


{{ block type="cms/block" name="customer_care" block_id="footer-customer-care"}}