Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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_listproducts_extended_listand products_grid_list page variables.