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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Blog Module /

Discuss the Blog Module.

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

Load more blogentries via Ajax


Go to End


2 Posts   1242 Views

Avatar
luuk

Community Member, 15 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, 267 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