MOVED: Infinite Scroll JS & News Module

dbs

hi, why you post under "help and support"?
"jquery" would be better, hm?
it exists also a forum for libraryadmin: klick

you want infinityscroll for content_short? or content_long?
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

jtrein

Update:  Sadly, still no good news.  I can't get it working.  It seems that the JS expects 2 things:


  • 1) a number 2 in the URL for the script to kick off.
  • 2) The mention of the word 'page' in the URL, since we're using .php URL endings, not .html (i.e. ?page=2)]

So, I even edited some of the News module where 'p' is set for ?p=...#..., to ?page=...#... .  I then set the increments for the News posts per page to multiples of 2, so you would get 2 for the page number, and not the standard 5.

This is a worthwhile script that can add a great amount of interactivity to News.

Any help is appreciated.  Anyone willing to make this a LibraryAdmin plugin?


Kindest,

jtrein

jtrein

Anyone,

I tried my hardest to get infinitescroll.js (http://www.infinite-scroll.com/) working on WebsiteBaker, for the News module, to no avail.

My jQuery is up-to-date and I included the scripts as usual.

What I found when searching forums on GitHub (https://github.com/paulirish/infinite-scroll/issues/5) for the project was that the "/...php?p=5" - or whatever you have your news limit set to 50, 90, etc. -  is not expected from the script.  By default the AJAX, or whatever, is looking for something to effect of /pages/2, /pages/2.html

There has been steps taken in the most recent version to address this, but I still can't get it working!

This would be so awesome to get working, so we don't have to use/expose the [NEXT_PAGE_LINK].


Looking forward to any experimentation!

jtrein