Skip to content

Instantly share code, notes, and snippets.

@Patrick64
Created December 10, 2013 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Patrick64/7892949 to your computer and use it in GitHub Desktop.
Save Patrick64/7892949 to your computer and use it in GitHub Desktop.
Clothes shop example for Reefine
{exp:reefine channel="clothes" parse="inward" theme="shop"
filter:fields="title|product_type|size|colour|price"
filter:price:type="number_range"
url="/{segment_1}/{segment_2}/{product_type}/{size}/{colour}/{price}/{title}"}
{entries}
{if entry_ids=='-1'} <p>No matching products found.</p> {/if}
{exp:channel:entries entry_id="{entry_ids}"
disable="categories|category_fields|member_data" dynamic="no"
orderby="title" sort="asc" status="not closed" limit="8"
paginate="yes"}
<div class="reefine_product size_{size}">
<div class="reefine_product_image">
<img src="{product_image}" alt="{title}" />
</div>
<div class="reefine_product_caption">
<a href="/products/{url_title}">{title}</a>
<div class="reefine_product_price">&pound;{price}</div>
</div>
<div class="reefine_product_links"><a href="/products/{url_title}">Buy Now</a></div>
</div>
{paginate} <div class="paging">Page {current_page} of {total_pages} pages {pagination_links}</div>
{/paginate} {/exp:channel:entries} {/entries}
{/exp:reefine}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment