Description
Load more posts on a given page.
Example
<posts name="main" source="frontpage" limit="4" format="news"/><next_page> <posts name="main" source="frontpage" limit="4" format="news"/></next_page>
Content between the <next_page></next_page> tags will be inserted into the DOM on User Action, which means you can also add javascript code that executes as a callback function after loading more posts.
When using multiple <next_page> tags on the site, make sure that you add unique node_id attribute to them.
<posts name="main" section_url="top-videos" limit="4" format="main-news"/><next_page node_id="video-posts"> <posts name="main" section_url="top-videos" limit="4" format="main-news"/></next_page><posts name="main" section_url="featured" limit="4" format="sidebar"/><next_page node_id="featured-posts"> <posts name="main" section_url="featured" limit="4" format="sidebar"/></next_page>
User Actions
- Click Load More button
- Scroll
The User Action is defined globally for the entire site in engine_settings.py which you may not have access to.
If needed, please ask one our developers to help you out changing the load more behaviour of your site.