I saw this answer Static block on home page in Magento but cant make it work.
Im just trying to add a custom block in my home page. These are the things I've done:
1- Add this to my layout file.
<cms_index_index>
<reference name="content">
<block type="aitshopassist/assistant" name="aitshopassist_assistant" template="aitshopassist/assistant.phtml">
<action method="setBlockId"><block_id>shop_assistant_block</block_id>
</action>
</block>
</reference>
</cms_index_index>
2- Added this to the 2columns-right.phtml file:
<?php echo $this->getChildHtml('shop_assistant_block') ?>
Also, the block is shown correctly in catalog_category_view.
What am I missing?
<catalog_category_view>
<reference name="content">
<block type="aitshopassist/assistant" name="aitshopassist_assistant" template="aitshopassist/assistant.phtml" before="category.products" />
</reference>
</catalog_category_view>
I tried this in the cms_index_index but didnt work..