Pages

Tuesday, June 25, 2013

Get cms static block in magento

Here is the code to get the cms block in magento front end.
$this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘blockidentifier’)->toHtml()
In the editor you can simply call to
{{block id=’block_id’}}
Similar reference
{{store direct_url=’mypage.html’}}
{{skin url=’images/media/about_us_img.jpg’}}

No comments:

Post a Comment