Magento: Include Layered Navigation In A CMS Page
- Category: questions, web development
This is another popular question. Often you want to show items on a CMS page rather than a regular category page. But you still want to have the layered navigation to filter results like it appears by default with Magento at the category level (when listing products).
To add Magento’s layered navigation to a CMS page where you’re showing items simply edit your CMS page in the admin – under the “Design” tab put this code:
<reference name="left">
<block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/>
</reference>
That will show the layered navigation at the very top of the left column on your CMS page. Of course make sure your CMS page layout is “2column with left bar” (under “layout” in the “Design” tab).
Related posts:
- Magento: list products on a CMS page
The best way to show products in a CMS page with Magento - Magento: how to handle using code in the content of a CMS page
The best way to handle content in CMS pages with Magento
Don’t forget! Subscribe and follow!
Be sure to subscribe to the feed and follow us on Twitter for more tips, resources, and giveaways!
Thanks for this interessting post.
I tried this on version 1.4.0.1 with the sample data.
The content of the CMS page is :
{{block type=”catalog/product_list” category_id=”13″ template=”catalog/product/list.phtml”}}
And i had added the layered navigation as you said.
Actually, the layered navigation is showing in the left column but the differents filters don’t seem very relevant to the poducts we see in the page. i got for example a price filter with only one value (2980.00 € – 2990.00€) and clicking on this linking doesn’t seem to filter anything. I can still see the same procut in the page.
It seems like the 2 blocks (layered nav and produtc list) are not linked together?
Any idea,
Thanks
Didier
I get the same issue as Didier.
When I had the code
The layered navigation is displayed on the left but the content is not related to the listing products.
By example, all the site categories appears whereas the products belongs to some categories only.
And when I click on a filter link, nothing change.
Thanks in advance for your advice
Any ideas?