I need to show the layer navigation filter values in above the search page heading.
I have tried below code in the
app\design\frontend\rwd\default\template\catalogsearch\result.phtml
file.
$layout = Mage::getSingleton('core/layout');
$block_header = $layout->createBlock('catalog/layer_state')->setTemplate('catalog/layer/state_1.phtml');
$block_links = $layout->createBlock('core/text_list','catalog.leftnav.state.renderers');
$block_header->setChild('state_renderers',$block_links);
echo $block_header->toHtml();
But I am getting empty value.
Please assist me.
Best Answer
you can get active filter with below code. tested code..
for category page
for search page
or you want to show only the current filter state use this code
for category page
for search result