Calling a static block inside the template

The following snippet is incredible useful specially when you are implementing custom layouts with menus, static blocks of text and so on the following code should work with any version of Magento
$this->getLayout()->createBlock('cms/block')->setBlockId('your_block_name')->toHtml();

Related Posts:

Comments (0)

Post A Comment