I've created a basic module that has a block (extending Mage_Catalog_Block_Product_List
). The purpose of the module is list products of a certain attribute set, and allow the user to filter them by defined attributes, in a certain way.
I have the module/block working, being called from a CMS page as follows:
{{block type="abc_pdn/list" name="pdn" template="catalog/product/list.phtml" attribute_set_id="9" attribute_list="rel_manu,rel_make"}}
This works fine, and allows me to list products using the default Magento template. The bit I'm struggling with is to inject a custom block above the product list that contains 2 dropdowns, one for each of the attributes. I have some code written that will output dropdowns as HTML, but I'm not sure how I add these through the template.
What is the Magento way of adding another block template within my module containing my custom dropdown HTML code?