Release - simple Ajax Page List package

Permalink 1 user found helpful
Hello all

I've been trying to solve this myself for a while now and having done so I thought I'd share what I've done with the community.

There are various threads on this forum (some going back a few years) about having an AJAX-ified Page List block. Here's a first release of a simple package which adds the necessary tool file and custom template to the Page List block without altering the controller (this means you can have a mixture of AJAX and non-AJAX Page Lists on your site if you require that for whatever reason).

The tool file might not be as MVC as is ideal, but it's based on the getPageList() method in the core page_list controller and it works. The markup that's generated is the same as the standard Page List view, so any CSS used for that should Just Work® with minimal tweaking.

The code is over on Github in case anyone is interested in using and/or improving it:https://github.com/melat0nin/concrete5_ajax_page_list...

Cheers :)

melat0nin
 
melat0nin replied on at Permalink Reply
melat0nin
I've added filtering by custom select attributes for those who require it (you can ignore this function and it'll paginate with AJAX as expected, if that's all you need it to do).

Latest package version available at https://github.com/melat0nin/concrete5_ajax_page_list/archive/master...

And instructions at https://github.com/melat0nin/concrete5_ajax_page_list...
BlueFractals replied on at Permalink Reply
BlueFractals
Hi melat0nin,
I was looking at your add-on once again as I'm trying to include a similar feature on my new block. When I tried applying the AJAX Page List template to multiple Page List blocks in the same page, it does not seem to work. Are you aware of this? Do you know how to resolve this issue?
BlueFractals replied on at Permalink Reply
BlueFractals
Yeah it was due to some ids not being unique. Appending bID to the ids resolves this issue.