I am writing a new module to get a filtered Collection. Currently I am using my own template file to show the results but I want to use directly my templates catalog/product/list.phtml file to keep evreything simple and centralized.
Currently what I have in my controllers index action is :
$block = $this->getLayout()->getBlock('brands');//get the block instance
$block->setData("collection",$collection)->setTemplate('cantek_brand/brand.phtml'); //set collection and the template
In my modules layout xml
<layout>
<brand_index_index>
<reference name="content">
<block type="core/template" name="brands" as="brands" />
</reference>
</brand_index_index>
</layout>
So, with this way I have the collection set and the template that I created. But this way the list views are not identical on the website.
My Question is: How can I use catalog/product/list.phtml for my custom module template?