EllisLab text mark
Advanced Search
     
Load more button
Posted: 25 July 2012 05:27 PM   [ Ignore ]
Joined: 2010-05-06
13 posts

I have a blog and on the landing page I have the latest 10 listed, and then I have a link to see all the other entries.

What I want to do is instead of having a link to see all the other entries, I want to have a Load More entries button, that will load the new 10 or so.

I know this can be done with jquery, but I was wondering if there was a function in expression engine that would allow this?

 
Posted: 26 July 2012 06:17 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2002-05-20
12626 posts

The tag with the limit of 10 on it is pretty much the functionality you want.  Though you need to be careful if it’s in a side bar that’s on every page- because it could get confused as to whether it is supposed to be paginating.

In any case- the tag you’re using to show the latest 10 is pretty much the function you want- use the Next/Prev looking pagination.

But that’s just going to reload the page.  If you want it to change the display without reloading, either js/jquery or an iframe would be the way to go.

I spotted a third party add-on that makes it easy to do it with jquery- see AJAX Pagination, and I wouldn’t be surprised if there were others.  It should be pretty simple to yourself, too.  But there isn’t a parameter or a native add-on or such that switches to js/ajax pagination.  Though it’s a neat idea, now that you bring it up.

Does that help a bit?

 

 Signature