2

I am a newbie to magento, I installed Strategery InfiniteScroll 2 for infinite scrolling of products. It works properly in inner pages. It is not working in home page.

When i viewed the home page source code the jquery files are not included in home page(cms). How can i include an extensions jquery files on home page. The jquery.latest.min.js also not included in home page. How can i include this on home page

1 Answer 1

3

If you need this on your home page only, then open your home page in admin panel under CMS->Pages

in Layout Update XML field under Design Tab add the following:

    <reference name="head">
    <action method="addItem" ifconfig="infinitescroll2/general/enabled">
        <type>js</type>
        <name>jquery/jquery.latest.min.js</name>
    </action>
    <action method="addItem" ifconfig="infinitescroll2/general/enabled">
        <type>js</type>
        <name>jquery/infinitescroll2/jquery.infinitescroll.js</name>
    </action>
    <action method="addItem" ifconfig="infinitescroll2/general/enabled">
        <type>js</type>
        <name>jquery/infinitescroll2/behaviors/infinitescroll-magento.js</name>
    </action>
    </reference>

Note:

Remember this will work only if products on your home page are paginated.

1
  • glad that works :)
    – Shathish
    Sep 26, 2013 at 8:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.