News - CrystalCommerce Liquid Documentation for Designers

News


Added pages.meta_tags

Apr 1, 2013 Added pages.meta_tags

Page drops now return an array of meta_tag drops via the meta_tags method. Those drops expose name and content fields.


Added site.store_locations

Feb 26, 2013 Added site.store_locations

Store locations can be defined in the admin. You can then loop through those locations in liquid from the site drop using site.store_locations.


Added buylist flag to tagged_with

Feb 15, 2013 Added buylist flag to tagged_with

Added the buylist flag to the tagged_with block, which will tag the products as if you were browsing in buylist mode.


Added root_id to cached_category_tree

Nov 28, 2012 Added root_id to cached_category_tree

You can now specify the root category for the tree with root_id:

{% cached_category_tree root_id:8 do category %}
{% endcached_category_tree %}

This will only render the Magic Singles category tree.


Added custom layouts for category browse

Nov 19, 2012 Added custom layouts for category browse
There are now 4 additional options for the category browse layout: CustomLayout1, CustomLayout2, CustomLayout3, and CustomLayout4. As a designer you get access to the layout on the category drop (category.layout), so now you can create a custom layout if needed.

Added find_products block, like tagged_with

Nov 16, 2012 Added find_products block, like tagged_with

You can now search for arbitrary products with the find_products block:

{% find_products name_includes:'Lightning Bolt' in-stock do products order:sell_price reverse %}
  <table border="0" class="invisible-table" width="100%">
    {% include 'product' with products %}
  </table>
{% endtagged_with %}

Allowed variable name for tag to use in tagged_with

Nov 15, 2012 Allowed variable name for tag to use in tagged_with

You can now use a variable name in the tagged_with block:

{% assign tagname = 'Hot Sellers' %}
{% tagged_with tagname do products %}
  <table border="0" class="invisible-table" width="100%">
    {% include 'product' with products %}
  </table>
{% endtagged_with %}

Added recaptcha_tags to site drop

Oct 26, 2012 Added recaptcha_tags to site drop

You can now call recaptcha_tags on the site drop, which is available on every page. You can use this to add a user signup form on any page, for example.

{{ "recaptcha.please_verify_your_humanity" | trans }}
{{ site.recaptcha_tags }}

Rendering an arbitrary page

Sep 20, 2012 Rendering an arbitrary page

You can now load an arbitrary page (for sidebar content, etc) by seoname with the load_page block:

{% load_page 'events' do page %}
  Title: {{ page.title }}
  Content: {{ page.content }}
{% endload_page %}