| 1 comments ]

Re-Share This Post: Technorati Digg This Stumble Stumble Facebook Twitter
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();

?>


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

Unknown said... @ 16 March 2018 at 04:23

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

 
http://www.tsfaenterprise.com TSFA ENTERPRISE TSFA GAS OVEN AND HOME APPLIANCE IN PAKISTAN GAS OVEN GAS OVEN in pakistan Pakistan Home Appliance http://gasovenandhomeappliancesinpakistan.com/ TSFA ENTERPRISE TSFA GAS OVEN AND HOME APPLIANCE IN PAKISTAN GAS OVEN GAS OVEN in pakistan Pakistan Home Appliance