If you want to display static block in PHTML file in Magento. We can use following code:
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('identifier')->toHtml() ?>
But If you want to display static block with title. So, we can you following code:
<?php
$block = Mage::getModel('cms/block')--->load('identifier');
echo $block->getTitle();
echo $block->getContent();
?>
Its good to know about static block with title, very informative and pretty well maintained. Thanks for this post, keep updating.
ReplyDeleteHot Rolled Coil Supplier In Delhi
This post is all about the static block with title file in magento. This is a very informative and pretty well maintained.
ReplyDeleteknuckle and elbow whitening cream
Really amazing post.
ReplyDeletelycopene capsules
This post is really nice and keep updating.
ReplyDeleteBuy zambian emerald natural online
This post is really pretty impressive, thanks for it.
ReplyDeleteuboard