Hi Kirby friends,
I would like to build a dynamic block with ajax “load more” button from other pages.
My CarOverview Block works great with this code and I see all five cars:
$cars = $pages
->find('collection')
->children()
->listed()
->filterBy('category', $block->content()->category())
->paginate(5);
//... foreach loop with cars ....
Could you give me some advices, should I create a controller or model? My idea is to use this block on different pages and load more cars over ajax.
Cheers
Leff