ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Load more button

July 25, 2012 5:27pm

Subscribe [2]
  • #1 / Jul 25, 2012 5:27pm

    adminGHF

    2 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?

  • #2 / Jul 26, 2012 6:17pm

    Robin Sowell

    13255 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?

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases