Skip to content

Instantly share code, notes, and snippets.

@austinthecoder
Created February 10, 2010 19:18
Show Gist options
  • Save austinthecoder/300738 to your computer and use it in GitHub Desktop.
Save austinthecoder/300738 to your computer and use it in GitHub Desktop.
{{ store.taxonomies | find_by_name:'Featured Pages' | assign_to:'featured_pages_taxonomy' }}
{{ featured_pages_taxonomy.taxons | find_by_name:'Home Page' | assign_to:'home_page_taxon' }}
{{ home_page_taxon.products | assign_to:'featured_products' }}
{{ featured_products | only:6 | assign_to:'featured_products' }}
<div id="featured_products">
<h2>Featured Products</h2>
{% snippet 'Products' products:featured_products %}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment