2011-02-17 47 views
2

添加一个动作过滤器,以块我有以下几点:Magento的1.4.2 - 在CMS

<div> 
<h2 class="subtitle">Featured Products</h2> 
{{block type="catalog/product_list" category_id="41" template="catalog/product/list.phtml"}}</div> 
<div> 

...我想一个动作方法添加到它:

<action method="setColumnCount"><columns>4</columns></action> 

...但是我不能在CMS中添加操作方法,或者我没有正确格式化,任何人都可以帮忙吗?

感谢保罗

回答

3

setColumnCount是一种方法和AFAIK CMS指令只能指定属性。尝试直接把值:

{{block type="catalog/product_list" column_count="4" category_id="41" template="catalog/product/list.phtml"}}</div> 

+0

真棒感谢(代码从here借来的),Magento的论坛和聊天是狗屎! SO FTW! – 2011-02-17 16:30:33