Dokumentation Entwickler Liquid Referenz Filter

Makros

Aktualisiert am 16.03.2017

Inhalt

default_pagination

Syntax:
{{ pagination | default_pagination}}
Beispiel:
<div id="paginator">
{{ paginate | default_pagination }}
</div>
Ausgabe:
<div id="pagination" class="info">
<span class="pagination_current_page">1</span>
<span class="pagination_page"><a href="/collections/katalog?page=2">2</a></span>
<span class="pagination_page"><a href="/collections/katalog?page=3">3</a></span>
<span class="deco">…</span>
<span class="pagination_page"><a href="/collections/katalog?page=7">7</a></span>
<span class="next"><a href="/collections/katalog?page=2">»</a></span>
</div>

property_table

Syntax:
{{ properties | property_table }}
Beispiel:
{{ product.description }}
{{ product.properties | property_table }
Ausgabe:
<p>Dies ist eine Produktbeschreibung</p>
<table cellspacing="0" cellpadding="0">
<tr class="even">
<th>Betriebssystem</th>
<td>OS X</td>
</tr>
<tr class="odd">
<th>Kamera</th>
<td>2,0 Megapixel</td>
</tr>
<tr class="even">
<th>Speicherplatz</th>
<td>8 GB</td>
</tr>
<tr class="odd">
<th>Netz</th>
<td>GSM (Quadband)</td>
</tr>
<tr class="even">
<th>Funktechnologie</th>
<td>Wi-Fi (802.11b/g)</td>
</tr>
<tr class="odd">
<th> </th>
<td>EDGE</td>
</tr>
</table>