Can I add layered navigation on pages different from home page?

by Peter D.

Yes, the ajax layered navigation block can be used with the next xml code.

<reference name="head">
            <action method="addItem" ifconfig="ajaxlayerednavigation/home_cat/enabled">
                <type>skin_css</type>
                <name>css/ajaxlayerednavigation.css</name>
            </action>
            <action method="addItem" ifconfig="ajaxlayerednavigation/home_cat/enabled">
                <type>skin_js</type>
                <name>js/ajaxlayerednavigation.js</name>
            </action>
        </reference>
        <reference name="before_body_end">
            <block type="ajaxlayerednavigation/layer_create" name="ajaxlayerednavigation">
                <action method="setTemplate" ifconfig="ajaxlayerednavigation/home_cat/enabled">
                    <template>ajaxlayerednavigation/create.phtml</template>
                </action>
            </block>
        </reference>


 <reference name="left">
           <block type="ajaxlayerednavigation/layer_view" name="my.catalog.leftnav" 
before="-" template="ajaxlayerednavigation/layer/homeview.phtml"/>
 </reference>
 

Recent articles

Get Discount!

Get your personal discount !

Like us on Facebook, post a Tweet or rate us at Google Plus to get instant 10% OFF on any purchase from our store.

Please make your choice
Discount Coupon Code

Back to top