Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Load more blogentries via Ajax


Reply


2 Posts   402 Views

Avatar
luuk

Community Member, 14 Posts

7 July 2014 at 1:54am

Hi,

I would like to create a functionality to load more BlogEntries on click. I can't really find a best practice or something like that. I prefer generating a JSON file and load it correctly with Handlebars and some custom Javascript. Is there an easier way to do it?

Thanks in advance

Avatar
camfindlay

Forum Moderator, 188 Posts

27 July 2014 at 8:05pm

As far as getting the JSON blog entries easily, you could look at using the RESTful server module.
http://addons.silverstripe.org/add-ons/silverstripe/restfulserver