B-219 Sec-55 Noida, India
+918010221733

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’}}

(Visited 65 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.