Skip to content

Use of pagination in product listings #14

@andelo

Description

@andelo

when having alot of products its common to use pagination to limit the result into pages.

{% paginate collection.products by 25 %}
  {% for product in collection.products %}
    {% include 'productCard' %}
  {% endfor %}
  /* render the pagination buttons */  
  {% for p in paginate.pages %}
    ...
  {% endfor %}
{% endpaginate %}

The pagination uses a page url query parameter like this: /collection/our-versions?page=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions