Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add collection per page setting for Collection list template #1767

Open
2 tasks
melissaperreault opened this issue Jun 6, 2022 · 2 comments
Open
2 tasks
Labels
Category: Enhancement New feature or request

Comments

@melissaperreault
Copy link
Contributor

melissaperreault commented Jun 6, 2022

Observation

We currently offer the limit of 28 or 30 collections per page depending on how many items you display per column.

The numbers are arbitrary given the flexibility we offer for the Collection template where we offer the number of items per page along with the number of columns.

  • Offer the same flexibility from the Collection template to the Collection list template
  • Investigate the ranges limits to make sure they are relevant with our grid flexibility.

Originally posted by @melissaperreault in #1745 (review)

@ferwegner
Copy link

ferwegner commented Jul 16, 2022

I made a page template, and in this page I created a personalized liquid section with the code below, that lists all the collections linked in the menu with the same name as the page. The problem is, I am trying to paginate those collections listed, but nothing works.
I tried:
{% paginate collection-list grid by 24 %}
{% paginate collections by 24 %}
{% paginate collections['my-handle'].products by 24 %}
{% paginate collections.products by 24 %}

Does anyone know how to paginate the list of collections?

The code that I used in the personalized liquid section is:
`{{ 'component-card.css' | asset_url | stylesheet_tag }}
{{ 'section-collection-list.css' | asset_url | stylesheet_tag }}

    {% for link in linklists[page.handle].links %} {% if link.type == 'collection_link' %} {% assign collection = link.object %}
  • {% render 'card-collection', card_collection: collection, media_aspect_ratio: section.settings.image_ratio, columns: 3 %}
  • {% endif %}
      {%- endfor -%}
    </ul>
    
`

@ferwegner
Copy link

personalized liquid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants