The Part object represents of a navigation in Paginate object, it contains following attributes:


Object Fields

FieldData TypeDescription
part.is_linkBooleanReturns true if the part is clickable
part.pageNumberReturns the page number of the part
part.titleStringReturns the title of the part.
part.urlStringReturns the url link of the part.

Code Example

{% if paginate.previous.is_link %} <li> <a href="{{ paginate.previous.url }}"></a> </li> {% endif %} {% for part in paginate.parts %} <li class="{% if part.page == paginate.current_page %}active{% endif %}"> <a href="{{ part.handle }}">{{ part.title }}</a> </li> {% endfor %}