Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In layered navigation view, my themes show which filters are currently applied to the view. However, it doesn't show which category you are currently in.
I guess I have to edit the state.phtml, but what would I add in order to get current category?
You can use magento registry variable
magento registry variable
Mage::getSingleton('catalog/layer')->getCurrentCategory() for getting current category object
Second option is best
you can get the current category like that
Required, but never shown