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:
Code Block |
---|
{% 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 %} |
For a simpler way to output the feature products, see the products_compact_list
, products_extended_list
and products_grid_list
page variables.