Writing · Archive

Magento - static blocks into template

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('my-new-block-identifier')->toHtml() ?>

Anfang September 2009

From the older archive — written at the time and left as it stood. The opinions, the tooling and the typos are all period-accurate.

> <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('my-new-block-identifier')->toHtml() ?>

thanks to inacode, the first usefull google-search result to this special point ;).

From Anfang September 2009
Home Reading Photos Projects About