Cms Page and Static Block Magento
{{block type="core/template" template="page/home_ban.phtml"}} // to call the phtml file in cms page or static block
{{block type="catalog/product_list" category_id="254" template="catalog/product/list1.phtml"}} //to call the product listing page on home page with category id (make a duplicate of list.phtml and rename as list1.phtml)
{{block type="catalog/product_list" category_id="4871" template="catalog/product/list2.phtml"}} //to call the product listing page on home page with category id (make a duplicate of list.phtml and rename as list1.phtml)
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('testmenu')->toHtml() ?>//to call the static block in php file
{{block type="catalog/product_list" category_id="254" template="catalog/product/list1.phtml"}} //to call the product listing page on home page with category id (make a duplicate of list.phtml and rename as list1.phtml)
{{block type="catalog/product_list" category_id="4871" template="catalog/product/list2.phtml"}} //to call the product listing page on home page with category id (make a duplicate of list.phtml and rename as list1.phtml)
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('testmenu')->toHtml() ?>//to call the static block in php file
Comments
Post a Comment