Endless page - Ajax-based module loading the page dynamically as you scroll

asund - November 2, 2008 - 23:44

I have written a module for loading pages dynamically while scrolling - endless page. It works great, but I would like to make a views plugin out of it.
But I'm having a hard time figuring out the views2 documentation.

Does anybody want to give me a push in the right direction on how to do this?
I guess it should be a display plugin, but would it also need a style and row plugin?

All the module needs is an array of nid's to use.
Please take a look at the module if you have the time - it's pretty well commented and explained, and works perfectly on my testserver at least.

The module requires the jQ module: http://drupal.org/project/jq

http://www.paranaiv.no/endless_page.tar.gz

Thank you!

I realize i could have

asund - November 3, 2008 - 08:20

I realize i could have explained the functionality of my module better.
It loads new nodes when you get to the bottom of the page - much like Google Reader.

The module as it is now creates a page on your site called /endless_page wich lists all published nodes on your site.
You can make your own page by simply calling endless_page_create($nodes); where $nodes is an array of nids to use.

Figured it out

asund - November 8, 2008 - 19:26

The module is now commited: http://drupal.org/project/endless_page

 
 

Drupal is a registered trademark of Dries Buytaert.