News - CrystalCommerce Liquid Documentation for Designers

News

The news page is used to show the customer new events that the store would like to announce.

Additional Variables Available

None

Used in Routes

  • /news/list

File: news.liquid

Default Liquid Template

<h1 class="pagetitle">News</h1>
{% if posts.size > 0 %}
	{% for post in posts %}
		{% include "news_post" with post %}
	{% endfor %}
{% else %}
	<p>There is no news currently posted.</p>
{% endif %}

Default Mobile Liquid Template

<h1 class="pagetitle">News</h1>
{% if posts.size > 0 %}
	{% for post in posts %}
		{% include "news_post" with post %}
	{% endfor %}
{% else %}
	<p>There is no news currently posted.</p>
{% endif %}

Drops Supported