Yoast landing pages module with layered navigation

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 mean-time, you can just float col-right left and col-main right, to get your 2 column left layout back.

That's it! But you'll need to use using our updated version of Yoast_Filter - which includes the extra functionality required for layered navigation. You can download it using the link below.

Download Yoast Landing Pages (enhanced)