Created
February 6, 2014 20:09
-
-
Save kyleaparker/8851659 to your computer and use it in GitHub Desktop.
Shopify: Map all collection tags (avoid 50 product limit)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign collection_tags = collection | map: 'tags' %} | |
{% for tag in collection_tags %} | |
<a href="/collections/{% if collection.handle != blank %}{{ collection.handle }}{% else %}all{% endif %}/{{ tag | handleize }}" title="{{ tag | escape }}">{{ tag }}</a> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@darryn sorry just saw this!
Yup you can create an array of product titles. You would use something like:
I looks like it doesn't work with tags, possibly because collection.tags is already an array? Like this:
However, your example would work like this: