cycle - Shopify closing cyle-tag -
i'm trying achieve close cycle-tag after iteration on collection has finished.
<div class="row products"> {% product in collection.products limit: settings.pagination_limit %} {% cycle '<div class="row">', '', '', '' %} {% include 'product-loop' collection.handle %} {% cycle '', '', '', '</div>' %} {% endfor %} </div>
i know using cycling groups, don't know how use here. after iterating on collection new cycling group should used.
i tried using isn't working:
{% cycle [collection.handle]: '<div class="row">', '', '', '' %}
do have ideas?
it should work without square brackets. try this:
{% cycle collection.handle: '<div class="row">', '', '', '' %}
Comments
Post a Comment