In magento I want to show a static block in homepage only.
I tried the solution mentioned in this question but it didn't work.
I added this code, in page.xml file, and it started giving error, so i cut it from their and put it in local.xml file:
<cms_index_index>
<reference name="content">
<block type="cms/block" name="home-page-block">
<action method="setBlockId"><block_id>home-page-block</block_id></action>
</block>
</reference>
<cms_index_index>
It didn't give error, but still doesn't show static block. I even entered this in 2columns-right.phtml file, though i think it wasn't required.
<?php echo $this->getChildHtml('home-page-block') ?>
But it still didn't work. Can someone point out what am i missing?