Hi everyone. I’m trying to recreate this cookbook recipe, load more with Ajax, but I’m having some problems:
- The JSON only returns the first four articles after the offset, with the ‘more’ variable set to false, but there are many more articles.
- The articles that are loaded are the same as the last few already shown on the homepage.
This is my homepage template with the controller and article snippet. The first page of the homepage uses the same snippet. This is the Javascript and this is the home.json.php with its output as a screenshot to make it a little bit more readable.
What am I doing wrong? I do realize that the setup for the articles on the homepage is strange, the reason is that for the first bit of the page, there are some other bits of contents mixed in. For a live example, check out davlstudio.com.
Any help would be greatly appreciated!