Access Magento Static Block From a PHP Template File
$block = Mage::getSingleton('core/layout')->createBlock('cms/block')->setBlockId('block-id-in-magento');
echo $block->toHtml();
?>
$block = Mage::getSingleton('core/layout')->createBlock('cms/block')->setBlockId('block-id-in-magento');
echo $block->toHtml();
?>
Add a Static Block to the CMS Page Content Field
{{block type="cms/block" block_id="block-id-in-magento"}}
Adding a Static Block to the CMS Page Layout Update XML FIeld
reference
name
=
"content"
>
<
block
type
=
"cms/block"
name
=
"block.name"
>
<
action
method
=
"setBlockId"
><
block_id
>block-id-in-magentoblock_id
>action
>
block
>
reference
>
1 comments
Thank for giving such a stunning information.Really your blog is very fascinating and worth to read.Keep posting.
Magento ecommerce development services
Outsource magento development company india
Post a Comment