The part object

Each part returned by the array represents a link in the pagination's navigation.

The part object is only accessible through the paginate object, and can only be used within paginate tags.

The example below shows how the part object's attributes can be accessed through a for loop that goes through the array.


{% for part in %}
  {% if part.is_link %}
    {{ part.title | link_to: part.url}}
  {% endif %}
{% endfor %}


<a href="/collections/frontpage?page=1" title="">1</a>
<a href="/collections/frontpage?page=2" title="">2</a>
<a href="/collections/frontpage?page=3" title="">3</a>

The part object has the following attributes:

Returns true if the part is a link, returns false if it is not.


Returns the title of the part.


Returns the URL of the part.