I've used the follow code to get the whole list of manufacturer.
$currentCategory = Mage::registry('current_category');
$product = Mage::getModel('catalog/product');
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')->setEntityTypeFilter($product->getResource()->getTypeId())->addFieldToFilter('attribute_code', 'brand_name');
$attribute = $attributes->getFirstItem()->setEntity($product->getResource());
$manufacturers = $attribute->getSource()->getAllOptions(false);
Now, how can I get the manufacturer list that belong to a specific category? I've been digging for a while to find out a way to limit the result by a category but no luck. Can ResourceModel filtered by Category?
Thanks.