Posted By

kayue on 12/31/10


Tagged


Versions (?)

Magento Include block in page content


 / Published in: PHP
 

  1. // http://www.hellothemes.com/support/documentation/hellowired-documentation/
  2.  
  3. // include static block
  4. {{block type="cms/block" block_id="static_block_name"}}
  5. /*
  6. <block type="cms/block" block_id="homepage-news">
  7.   <action method="setBlockId"><block_id>homepage-news</block_id></action>
  8. </block>
  9. */
  10.  
  11. // skin path
  12. {{skin url='images/media/promo3.jpg'}}
  13.  
  14. // include page
  15. {{block type="catalog/product_list" category_id="3" column_count="4" template="catalog/product/list.phtml"}}
  16.  
  17. /* Same as the following XML code
  18. <block type="catalog/product_list" name="new_arrivals" template="catalog/product/list.phtml">
  19.   <action method="setCategoryId"><category_id>3</category_id></action>
  20.   <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>4</count></action>
  21. </block>
  22. */

Report this snippet  

You need to login to post a comment.