magento - Updating custom block in CMS page -


i'm having bit of trouble understanding how update custom block include in cms page.

i using standard shortcode in cms page, works fine:

{{block type="catalog/product_list" category_id="16"  template="catalog/product/slider_list.phtml"}} 

i trying set column count of custom custom block, i've found need following piece of code:

<block type="catalog/product_list" name="catalog.product.slider_list" template="catalog/product/slider_list.phtml">     <action method="setcolumncount"><columns>4</columns></action> </block> 

i'm not sure under <reference /> block should place code... looked in catalog.xml, , if try place between <reference name="root" />, not correct behavior.

thank you.

edit: use of incorrect terminology; calling block static, in fact custom block.

if want call on home page reference name should in local.xml or of xml of extension. add below

<cms_index_index>     <reference name="content">          // custom block          <block type="catalog/product_list" name="catalog.product.slider_list" template="catalog/product/slider_list.phtml">             <action method="setcolumncount"><columns>4</columns></action>          </block>         </reference> </cms_index_index> 

hope sure you.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -