In the frontend of the blog plugin I made in Builder, I need to paginate records within a Partial. It is possible ? I’m trying to use {{ ajaxPager(records) }}, but the page doesn’t update.
In main page:
{% ajaxPartial ‘site/materias/noticias’ %}
In site/materias/noticias:
[builderList artigos]
modelClass = "vsi\Materias\Models\Artigo"
scope = "scopeFeatured"
scopeValue = "{{ :scope }}"
displayColumn = "article_title"
noRecordsMessage = "No records found"
detailsPage = "-"
detailsUrlParameter = "id"
recordsPerPage = 9
pageNumber = "{{ :page }}"
sortColumn = "publish_up"
sortDirection = "desc"
==
{% set records = artigos.records %}
{% set displayColumn = artigos.displayColumn %}
{% set noRecordsMessage = artigos.noRecordsMessage %}
{% set detailsPage = artigos.detailsPage %}
{% set detailsKeyColumn = artigos.detailsKeyColumn %}
{% set detailsUrlParameter = artigos.detailsUrlParameter %}
{% for record in records %}
<h2 class="post-title"><a href="#">{{ record.article_title }}</a></h2>
{% endfor %}
<nav class="pagination-wrap mt-60">
{{ ajaxPager(records) }}
</nav>