Reputation: 138
I have tried to add a static CMS block inside a template. Here's what I've used
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('gift')->toHtml() ?>
But then, when I clear the cache and also, delete all files in var/cache folder, this block doesn't appear on the page.
I looked into the database and saw the correct relationship between block id and store id. This block is also active.
What should I do to make this block appear on a page? Is there anything else I need to look further into?
Thank you very much.
Upvotes: 2
Views: 850
Reputation: 1
Check if you have a relation between the CMS Static Block and the store in the database table cms_block_store
Upvotes: 0
Reputation: 3682
Your syntax is correct.
Upvotes: 1