Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5489

Magento call static block on cms pages

$
0
0

If You ant to call a static block on anu CMS page like homepage so you just follow the steps
Go To CMS->Pages
Select Your page

Go To Design->Layout Update XML
Reference means the block will call on left right or Content

<reference name="content">
<block type="cms/block" name="home-page-block">
<action method="setBlockId"><block_id>static-block-identifier</block_id></action>
</block>
</reference>

In case if reference already there then just use
<block type="cms/block" name="home-page-block">
<action method="setBlockId"><block_id>static-block-identifier</block_id></action>
</block>

Enjoy :)


Viewing all articles
Browse latest Browse all 5489

Trending Articles