Linking to a product
If you need to link to a product. but only know the name and the category, you can use the following URL that will redirect to the product page:
http://store.example.com/catalog/lookup?category=Tenth+Edition&name=Adarkar+Wastes
Which will then redirect to the product's page, if it can be found. If it can't be found, the user will be redirected to a search page for that category and product name.
RSS Feed Reader
Added the rss_feed
tag to display arbitrary rss feeds.
Product Descriptor values
Added product.descriptor_hash
which exposes the product’s descriptors as downcased keys. So {{ product.descriptor_hash.card_type }}
will return the value for the product’s Card Type
descriptor (for example Creature).
Added option for number of products per page
Added a key to the theme config.yml file to specify how many products can be returned per page. Example:
products:
per_page: 30
Add descriptor_value_by_name
We’ve added a feature to the global filters to look up a descriptor value by name. Here’s an example of how you would use it:
{% assign language = variant | descriptor_value_by_name: "Language" %}
{% if language == "English" %}
Language: <img src="uk-flag.jpg" alt="English" />
{% else %}
LOL I DUNNO?
{% endif %}
Note that it returns a falsy value if it isn't set OR if the variant doesn't have that descriptor at all.
Add debugging support to asset minification
We’ve added an option to the css_minify_tag
liquid filter. For instance, if you had a config.yml
file with the following:
css:
all:
- blue.css
- css/red.css
- /test.css
When you added this to your theme.liquid
(note the new true
option after css_minify_tag
):
{{ "all" | css_minify_tag: true }}
It would render as:
<link href="/files/assets/blue.css?1340564403" type="text/css" media="screen" rel="stylesheet" />
<link href="/files/assets/css/red.css?1340564403" type="text/css" media="screen" rel="stylesheet" />
<link href="/test.css?1340564403" type="text/css" media="screen" rel="stylesheet" />
Add support for SASS and SCSS to asset minification
Our asset minification config now supports SASS and SCSS. Simply reference the sass file in your config.yml
to have the asset minifier compile it.
Updated multisearch to group by product name
The multisearch/deckbuilder search has been updated.
- Instead of using the
search.liquid
template to display results, it just re-renders the multi_search.liquid
template. If the query
variable is present, it will attempt to display the results. - The results are now grouped by their name, which should make for a more useful experience.
Added css_minify_tag and js_minify_tag
Added css_minify_tag and js_minify_tag, which in conjunction with the new theme config file will automagically minify your assets!
Update May 6: The minified assets don’t currently work with relative asset paths. We’re working on this and will update this when that is fixed.
Update May 6: Fixed! The minification of CSS files will now automatically rewrite the relative file paths to absolute. Contact support if you have any trouble with this feature.
As always, minifying javascript can cause problems for incorrectly formatted javascript (ie, missing semicolons). While the CSS minify is fairly straightforward, check your javascript console after switching to the minified javascript to make sure its working at intended.
Updated asset_url and cdn_url to use new cdn
The asset_url and cdn_url filters will now use the new cdn. This will speed up local asset downloads and use multiple hosts for parallelizing connections.