Magento: Include Layered Navigation In A CMS Page

Magento layered navigationThis 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:

Don’t forget! Subscribe and follow!

Be sure to subscribe to the feed and follow us on Twitter for more tips, resources, and giveaways!

7 Comments

  • jpgm
    I’ve tried it on local installations of Magento 1.4.1 with the sample data and on my own site, and while the “Shop By” box does appear in the top left, it doesn’t show more than one product, and I haven’t been able to get your solution to work on the home page. Any suggestions?
  • berliozd
    Hi,
    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

  • Teuf
    Hi

    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

  • Mozella
    Thanks!
  • Joe
    I have the same issue as Teuf, is there a solution?
  • Marco
    Same here love this code but my links from the homepage don’t work! Any idea on how to make this work? I’m using magento 1.5 if that helps!
  • Schonk
    Same here: doesn’t filter.

    Any ideas?

Leave a Reply

Sorry - this blog is now closed to new comments.