title: Magento Product Collection Limit via XML
body: <p>I've got a bestsellers module which I've written and it works great, however I want to be able to change the collection size it returns via the XML, rather than the php/phtml.</p>
  
  <p>Something like this: </p>
  
  <pre><code>    &lt;block type="catalog/product_list" name="bestsellers" limit="3" 
  template="custom/bestsellers.phtml" /&gt;
  </code></pre>
  
  <p>or something like:</p>
  
  <pre><code>    &lt;block type="catalog/product_list" name="bestsellers" 
  template="custom/bestsellers.phtml"&gt;
           &lt;action method="setLimit"&gt;3&lt;/action&gt;
      &lt;/block&gt;
  </code></pre>
  
  <p>Is this possible?</p>
  
  <p>I'm currently changing the limit via the phtml with:</p>
  
  <pre><code>-&gt;setPageSize(3)
  -&gt;setCurPage(1);
  </code></pre>
  
  <p>But that is hard coded and nasty, I need to be able to use my phtml file as template for many cases of the bestsellers module being called from anywhere with the XML + limit in the XML.</p>
  
  <p>Thanks in advance if anyone can shed light on this!</p>