xml - Changing the number of columns for the New Products grid widget in Magento -
how change number of columns new products grid widget in magento?
i know have update layout.xml
file somehow i'm not sure insert.or maybe have layout update in cms pages include widget?
if using cms page content widget container:
it pretty simple, add column_count parameter in {{widget type="widget_type" parameter1="value" column_count="your_value"}}
directive.
by way widget standard magento block pre-configurations, can specify block parameter within {{widget}}
directive.
if want use widget functionality, can create etc/widget.xml
in custom module xml:
<widgets> <new_products> <parameters> <column_count translate="label"> <required>1</required> <visible>1</visible> <value>5</value> <!-- default parameter value --> <label>the number of products in row</label> <type>text</type> </column_count> </parameters> </new_products> </widgets>
it add new field widget form, admin user able enter number of products in single products row
have fun magento =)
Comments
Post a Comment