I've attempted to create a template with the block type "catalog/product_list_toolbar" so that I can get the number of products currently in the category collection, in the same way as in toolbar.phtml. However, the collection is null when I inspect it in my custom template. If I inspect the contents of $this in my template, I have the following:
array(2) {
["module_name"]=>
string(12) "Mage_Catalog"
["type"]=>
string(28) "catalog/product_list_toolbar"
In my local.xml, my layout instruction is simply as follows.
<reference name="catalog.leftnav">
<block type="catalog/product_list_toolbar" name="filter_trigger"
template="catalog/product/list/filter.phtml" />
</reference>
Am I missing something obvious here? All I want to be able to do as output:
$this->__('%s product(s) found', $this->getTotalNum())