Created
May 29, 2014 19:40
-
-
Save kyledurand/186f5a48b527e78eba10 to your computer and use it in GitHub Desktop.
Sub Collection using link list
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
<!-- Begin Sub Colections --> | |
{% if collection.handle == 'shoei' %} | |
{% if linklists.shoei.links.size > 0 %} | |
<!-- BEGIN table.products --> | |
<table class="products"> | |
{% tablerow link in linklists.shoei.links cols: 8 %} | |
<div> | |
<a href="{{ link.url }}" title="Browse our {{ link.object.title | escape }} collection."> | |
<img src="{{ link.object.products.first.featured_image | product_img_url: 'micro' }}" width="auto" alt="{{ link.object.title | escape }}" /> | |
<p style="text-align:center;">{{ link.title }}</p> | |
</a> | |
</div> | |
{% endtablerow %} | |
</table> | |
<!-- END table.products --> | |
{% else %} | |
<p>Please {{ 'create a link list' | link_to: '/admin/links' }} that contains links to the collections you wish to feature here. The title of that link list must be <strong>{{ linklist | replace: '-', ' ' | capitalize }}</strong>.</p> | |
{% endif %} | |
{% endif %} | |
<!-- End Sub Collections --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment