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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

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

Load more blogentries via Ajax


Go to End


2 Posts   1973 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