Ajax Pagination

Permalink 1 user found helpful
How do i get the page list to load using ajax when the pagination is active...

agentorange
 
BlueFractals replied on at Permalink Reply
BlueFractals
Have you managed to get this resolved? I am looking at doing something similar.
melat0nin replied on at Permalink Reply
melat0nin
I recently developed a package which adds ajax paging to the Page List block. If you fancy trying it and giving any feedback that would be great:

http://www.concrete5.org/community/forums/customizing_c5/release-si...
BlueFractals replied on at Permalink Reply
BlueFractals
I gave it quick try. It seems to work quite well in 5.6.0.2.
However if I list all the pages without pagination, it gives the following warning:
Warning: Division by zero in C:\Installation\xampp\htdocs\concrete5.6.0.2\concrete\core\libraries\item_list.php on line 263


Thanks for sharing!
melat0nin replied on at Permalink Reply
melat0nin
Hi greent

Thanks for highlighting this. In my enthusiasm I forgot to include code to prevent the Page List from attempting to paginate when it hasn't been asked to!

I've updated the package on Github -- you can download it here: https://github.com/melat0nin/concrete5_ajax_page_list/archive/master... .

The two updated files are /blocks/page_list/templates/ajax_page_list.php and /tools/ajax_request.php. You can extract and upload just those to your site, rather than re-installing the package, if you prefer.

Let me know if you come across any other problems. If you're familiar with Github, you can log further issues on this page: https://github.com/melat0nin/concrete5_ajax_page_list/issues... . That's an easier place to track bugs and get other people involved.

Cheers!
jvansanten replied on at Permalink Reply
I'm pulling a 404 for both of these links.

This link, which you identified on another thread, appears to be correct:https://github.com/melat0nin/concrete5_ajax_page_list... .
melat0nin replied on at Permalink Reply
melat0nin
Apologies, the c5 forum doesn't remove periods which come immediately after a URL when it autogenerates links. I've made a space so both the links work now.
BlueFractals replied on at Permalink Reply
BlueFractals
Hi melat0nin

I downloaded the updated version of your package. Seems to work fine. Thanks for sharing this simple yet useful addon!