Help

Frequently asked questions and other useful tidbits.

URL Filters

Updated on April 16th, 2008

link_to(item, text, title, id, class, rel)

Creates a link to any page, product, artist, or category.

Options

  • text (item’s name by default)
  • title (”View {{ item.name}}” by default)
  • id (blank by default)
  • class (blank by default)
  • rel (blank by default)

{{ page | link_to }}
{{ product | link_to: 'My Product' }}
{{ category | link_to: 'Tees', 'View tees category', 'tees_category', 'categories' }}

product_image_url(image, size)

Returns the URL of the specified product image and size.

Options

  • size (”thumb” (75×75), “medium” (175×175), “large” (300×300), or leave it blank for the largest image)

{{ image | product_image_url }}
{{ image | product_image_url: "thumb" }}
<img src="{{ product.image | product_image_url size:"large" }}" />

theme_js_url(name)

Returns the URL of a JavaScript file used by a specific theme. Use this over calling the URLs directly.

<script src="{{ 'prototype' | theme_js_url }}" type="text/javascript"></script>
<script src="{{ 'api' | theme_js_url }}" type="text/javascript"></script>

theme_css_url(theme)

Returns the URL of your custom CSS StyleSheet. Set on the Design > Theme page of the admin.

<link href="{{ theme | theme_css_url }}" media="screen" rel="Stylesheet" type="text/css" />

Contact

Can’t find an answer to your question? No worries, we’re here to help.