Im XML-Template:
<layout>
<asdf_xy_zzz>
<reference name="content">
<block type="cms/block" name="cms_store_check">
<action method="setBlockId"><block_id>store_check</block_id></action>
</block>
</reference>
</asdf_xy_zzz>
</layout>
In einer PHTML-Datei:
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_id')->toHTML();?>
In einer CMS Seite:
{{block type="cms/block" block_id="your_id" template="cms/content.phtml"}}
Auch andere Blöcke können ausgegeben werden, zum Beispiel Produktlisten:
in einer CMS Seite:
{{block type="catalog/product_list" limit="3" category_id="434" template="catalog/product/bestsellers.phtml"}}
In einer PHTML-Datei:
<?php echo $this->getLayout()->createBlock("catalog/product_list")->setTemplate("catalog/product/bestsellers.phtml")->setCategoryId(434)->setLimit(8)->toHtml(); ?>
Auch andere PHP Dateien können eingebunden werden:
{{block type="core/template" name="neuheiten" template="catalog/cms/neuheiten.phtml"}}
via http://www.fly2mars-media.de/seoblog/magento/magento-statischen-cms-block-im-template-ausgeben-101390/
