has_next
(
)True if there is a next record in the parent's list of children.
If the parent record has pagination enabled, then use the pagination query to filter and order the children. Otherwise, the parent's standard configuration for children is used. See the pagination guide and the page order guide.
{% if this.has_next() %}
<a href="{{ this.get_siblings().next_page|url }}">next</a>
{% else %}
<p>This is the last entry.
{% endif %}
See also: has_prev and get_siblings.
Comments