I have a filtered product collection using custom attribute. How do I implement layered navigation for the same?
I have extended Mage_Catalog_Block_Product_List in my block to and override _getProductCollection() to update $this->_productCollection variable filtering it through a custom attribute. It gets nicely displayed.
But the layered navigation section appears to be unchanged. It appears to show all products. I want to show only $this->_productCollection products in layered navigation.
How do I do it? I feel that I may have to extend Mage_Catalog__Model_Layer and I even tried to but I couldn't produce the desired result.