d
Topic
Posts:
5
Last edited January 08, 2014

Select a collection dynamically. This post is outdated

Is it possible to select a collection dynamically using a variable?

{% assign collection-by-type = "foo" %}

<a href="{{ collections[collection-by-type].url }}" >{{ collections[collection-by-type].title }}</a>

 

i
Replies
Jason Shopify Expert freakdesign.com.au
Posts:
8225
January 09, 2014

Sure can, as long as "foo" is a handle. 

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au