Tag Archives:yoast filter

First, a thanks to the team at Yoast for a handy little module. We needed to add layered navigation to the result pane, but it appears others were struggling with a solution – so here’s the answer! Create your CMS brand/focus page as normal, then add the Yoast_Filter block: <reference name="content"> <block type="Yoast_Filter/Result" name="filter_result" template="catalog/product/list.phtml"> <action method="setColumnCount"><column_count>4</column_count></action> <action method="setAttributeName"><attribute_name>product_categories</attribute_name></action> <action method="setValue"><value>4441</value></action> <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> <block type="page/html_pager" name="product_list_toolbar_pager" template="page/html/pager.phtml" /> </block> <action method="setToolbarBlockName"><name>product_list_toolbar</name></action> </block> </reference> And underneath add the code to load the layered navigation in the left pane: <reference name="left"> <block type="Yoast_Filter/Layer_View" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/> </reference> Then set your layout to “2 columns right”. This is a bit of a caveat, due to the arguments being set in the block, the layered navigation block must be physically after the content block in the source code. When my brain is thinking straight, I’ll figure out the fix, but in the … Continue reading →