Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Custom pages can contain variables that are replaced with values when the page is presented to a visitor.

Custom pages can also contain logic to display data relevant to the feature products.

Example:

{% for product in products %}<div class="{% if forloop.last == true %}last{% endif %}" id="product_{{product.id}}"><a href="{{product.url}}"><img alt="Cover: {{product.name}}" class="composite" src="{{product.cover_url["s"]}}"></a><p><a href="{{product.url}}">{{product.name}}</a></p></div>{% endfor %}
  • No labels